strawman.collections.CollectionStrawMan6.IndexedView

Map

Related Doc: package IndexedView

class Map[A, B] extends View.Map[A, B] with IndexedView[B]

Linear Supertypes
IndexedView[B], ArrayLike[B], View.Map[A, B], Serializable, Serializable, Product, Equals, View[B], Iterable[B], IterableLike[B, View], IterablePolyTransforms[B, View], IterableMonoTransforms[B, View[B]], IterableOps[B], FromIterable[View], IterableOnce[B], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Map
  2. IndexedView
  3. ArrayLike
  4. Map
  5. Serializable
  6. Serializable
  7. Product
  8. Equals
  9. View
  10. Iterable
  11. IterableLike
  12. IterablePolyTransforms
  13. IterableMonoTransforms
  14. IterableOps
  15. FromIterable
  16. IterableOnce
  17. AnyRef
  18. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Map(underlying: IndexedView[A], f: (A) ⇒ B)

Value Members

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

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

    Definition Classes
    AnyRef → Any
  3. def ++[B >: B](xs: IterableOnce[B]): View[B]

    Concatenation

    Concatenation

    Definition Classes
    IterablePolyTransforms
  4. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  5. def apply(n: Int): B

    Definition Classes
    MapArrayLike
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def className: String

    The class name of this collection.

    The class name of this collection. To be used for converting to string. Collections generally print like this:

    <className>(elem_1, ..., elem_n)

    Definition Classes
    ViewIterableOps
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def coll: Map.this.type

    The collection itself

    The collection itself

    Attributes
    protected
    Definition Classes
    IterableIterablePolyTransformsIterableMonoTransformsIterableOps
  10. def copyToArray[B >: B](xs: Array[B], start: Int = 0): xs.type

    Copy all elements of this collection to array xs, starting at start.

    Copy all elements of this collection to array xs, starting at start.

    Definition Classes
    IterableOps
  11. def drop(n: Int): IndexedView[B]

    The rest of the collection without its n first elements.

    The rest of the collection without its n first elements. For linear, immutable collections this should avoid making a copy.

    Definition Classes
    IndexedViewIterableMonoTransforms
  12. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  13. val f: (A) ⇒ B

    Definition Classes
    Map
  14. def filter(p: (B) ⇒ Boolean): View[B]

    All elements satisfying predicate p

    All elements satisfying predicate p

    Definition Classes
    IterableMonoTransforms
  15. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. def flatMap[B](f: (B) ⇒ IterableOnce[B]): View[B]

    Flatmap

    Flatmap

    Definition Classes
    IterablePolyTransforms
  17. def foldLeft[B](z: B)(op: (B, B) ⇒ B): B

    Fold left

    Fold left

    Definition Classes
    IterableOps
  18. def foldRight[B](z: B)(op: (B, B) ⇒ B): B

    Fold right

    Fold right

    Definition Classes
    IterableOps
  19. def foreach(f: (B) ⇒ Unit): Unit

    Apply f to each element for tis side effects

    Apply f to each element for tis side effects

    Definition Classes
    IterableOps
  20. def fromIterable[B](c: Iterable[B]): View[B]

    Avoid copying if source collection is already a view.

    Avoid copying if source collection is already a view.

    Definition Classes
    ViewIterablePolyTransformsFromIterable
  21. def fromIterableWithSameElemType(coll: Iterable[B]): View[B]

    Create a collection of type C[A] from the elements of coll, which has the same element type as this collection.

    Create a collection of type C[A] from the elements of coll, which has the same element type as this collection. Overridden in StringOps and ArrayOps.

    Attributes
    protected[this]
    Definition Classes
    IterableLikeIterableMonoTransforms
  22. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  23. def head: B

    The first element of the collection.

    The first element of the collection.

    Definition Classes
    IterableOps
  24. def indexWhere(p: (B) ⇒ Boolean): Int

    The index of the first element in this collection for which p holds.

    The index of the first element in this collection for which p holds.

    Definition Classes
    IterableOps
  25. def isEmpty: Boolean

    Is the collection empty?

    Is the collection empty?

    Definition Classes
    IterableOps
  26. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  27. def iterator: Iterator[B]

    Definition Classes
    MapIndexedViewMapIterableOnce
  28. def knownSize: Int

    The number of elements in this collection, if it can be cheaply computed, -1 otherwise.

    The number of elements in this collection, if it can be cheaply computed, -1 otherwise. Cheaply usually means: Not requiring a collection traversal.

    Definition Classes
    MapIterableOps
  29. def length: Int

    Definition Classes
    MapArrayLike
  30. def map[B](f: (B) ⇒ B): IndexedView[B]

    Map

    Map

    Definition Classes
    IndexedViewIterablePolyTransforms
  31. def mkString(sep: String): String

    A string showing all elements of this collection, separated by string sep.

    A string showing all elements of this collection, separated by string sep.

    Definition Classes
    IterableOps
  32. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  33. final def notify(): Unit

    Definition Classes
    AnyRef
  34. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  35. def partition(p: (B) ⇒ Boolean): (View[B], View[B])

    A pair of, first, all elements that satisfy prediacte p and, second, all elements that do not.

    A pair of, first, all elements that satisfy prediacte p and, second, all elements that do not. Interesting because it splits a collection in two.

    The default implementation provided here needs to traverse the collection twice. Strict collections have an overridden version of partition in Buildable, which requires only a single traversal.

    Definition Classes
    IterableMonoTransforms
  36. def reverse: IndexedView[B]

    Definition Classes
    IndexedView
  37. def size: Int

    The number of elements in this collection.

    The number of elements in this collection. Does not terminate for infinite collections.

    Definition Classes
    IterableOps
  38. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  39. def tail: View[B]

    The rest of the collection without its first element.

    The rest of the collection without its first element.

    Definition Classes
    IterableMonoTransforms
  40. def take(n: Int): IndexedView[B]

    A collection containing the first n elements of this collection.

    A collection containing the first n elements of this collection.

    Definition Classes
    IndexedViewIterableMonoTransforms
  41. def to[C[X] <: Iterable[X]](fi: FromIterable[C]): C[B]

    Given a collection factory fi for collections of type constructor C, convert this collection to one of type C[A].

    Given a collection factory fi for collections of type constructor C, convert this collection to one of type C[A]. Example uses:

    xs.to(List) xs.to(ArrayBuffer)

    Definition Classes
    IterableOps
  42. def toArray[B >: B](implicit arg0: ClassTag[B]): Array[B]

    Convert collection to array.

    Convert collection to array.

    Definition Classes
    IterableOps
  43. def toString(): String

    Definition Classes
    IterableOps → Any
  44. val underlying: Iterable[A]

    Definition Classes
    Map
  45. def view: View[B]

    A view representing the elements of this collection.

    A view representing the elements of this collection.

    Definition Classes
    ViewIterableOps
  46. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  49. def zip[B](xs: IterableOnce[B]): View[(B, B)]

    Zip.

    Zip. Interesting because it requires to align to source collections.

    Definition Classes
    IterablePolyTransforms

Inherited from IndexedView[B]

Inherited from ArrayLike[B]

Inherited from View.Map[A, B]

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from View[B]

Inherited from Iterable[B]

Inherited from IterableLike[B, View]

Inherited from IterablePolyTransforms[B, View]

Inherited from IterableMonoTransforms[B, View[B]]

Inherited from IterableOps[B]

Inherited from FromIterable[View]

Inherited from IterableOnce[B]

Inherited from AnyRef

Inherited from Any

Ungrouped