Packages

object Chain

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Chain
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. class ChainIterator[A] extends Iterator[A]

    Iterator for a Chain[A].

    Iterator for a Chain[A].

    This is where the magic happens. To efficiently traverse into Chain.Concat instances, we build our own stack on the heap. When we descend into the LHS of a Concat we push the RHS onto this stack, so that when we exhaust the LHS we will remember to get an iterator from the RHS too.

    As mentioned earlier, iterating over ChainIterator[A] is an O(n) operation, that also consumes O(n) heap (the previously-mentioned stack.)

  2. case class Concat[A](lhs: Chain[A], rhs: Chain[A]) extends Chain[A] with Product with Serializable
  3. case class Elems[A](values: Iterable[A]) extends Chain[A] with Product with Serializable
  4. class IterableChain[+A] extends Iterable[A]

    Wrapper for Chain[A] that provides Iterable[A].

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val Empty: Chain[Nothing]
  5. def all[A](values: Iterable[A], moreValues: Iterable[A]*): Chain[A]

    Concatenate many collections together as a Chain.

  6. def apply[A](values: Iterable[A]): Chain[A]

    Wrap a collection in a Chain[A].

  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. implicit def chainOrdering[A](implicit arg0: Ordering[A]): Ordering[Chain[A]]

    scala.math.Ordering instance for Chains.

  9. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  10. def empty[A]: Chain[A]

    Produce an empty Chain[A].

  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. def single[A](a: A): Chain[A]

    Wrap a single A value in a Chain[A].

  21. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  22. def toString(): String
    Definition Classes
    AnyRef → Any
  23. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped