Class

com.cra.figaro.library.collection

ContainerElement

Related Doc: package collection

Permalink

class ContainerElement[Index, Value] extends AnyRef

Represents an element whose value is a container.

Elements that are created by operations are put in the same universe as this element.

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ContainerElement
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ContainerElement(element: Element[Container[Index, Value]])

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def aggregate[Value2](start: ⇒ Value2)(seqop: (Value2, Value) ⇒ Value2, combop: (Value2, Value2) ⇒ Value2): Element[Value2]

    Permalink

    Aggregate the results of applying an operator to each element.

  5. def apply(i: Index): Element[Value]

    Permalink

    Creates an element whose value is the value at the corresponding index of the value of the process element.

  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def chain[Value2](f: (Value) ⇒ Element[Value2]): ContainerElement[Index, Value2]

    Permalink

    Chain the given function pointwise through the value of the container element.

  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def count(f: (Value) ⇒ Boolean): Element[Int]

    Permalink

    Returns an element representing the number of elements in the container whose values satisfy the predicate.

  10. val element: Element[Container[Index, Value]]

    Permalink
  11. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  13. def exists(pred: (Value) ⇒ Boolean): Element[Boolean]

    Permalink

    Returns an element representing whether the value of any element in the container satisfies the predicate.

  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def foldLeft[Value2](start: Value2)(f: (Value2, Value) ⇒ Value2): Element[Value2]

    Permalink

    Produce the element over values obtained by selecting a particular container and folding through its values.

  16. def foldRight[Value2](start: Value2)(f: (Value, Value2) ⇒ Value2): Element[Value2]

    Permalink

    Produce the element over values obtained by selecting a particular container and folding through its values.

  17. def forall(pred: (Value) ⇒ Boolean): Element[Boolean]

    Permalink

    Returns an element representing whether the values of all elements in the container satisfy the predicate.

  18. def get(i: Index): Element[Option[Value]]

    Permalink

    Creates an element whose value is the value at the corresponding index in the value of the container element, if the index is in range, None otherwise.

  19. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  20. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  21. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  22. def length: Element[Int]

    Permalink

    Returns an element representing the length of the container.

  23. def map[Value2](f: (Value) ⇒ Value2): ContainerElement[Index, Value2]

    Permalink

    Map the given function pointwise through the value of the container element.

  24. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  25. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  27. def randomElement(): Element[Value]

    Permalink

    Select a random element from the container.

    Select a random element from the container. Ensures that no IndexOutOfRange exception should be thrown.

  28. def reduce(f: (Value, Value) ⇒ Value): Element[Value]

    Permalink

    Produce the element over values obtained by selecting a particular container and reducing through its values.

  29. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  30. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  31. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped