scala.collection

GenBagLike

trait GenBagLike[A, +Repr] extends GenIterableLike[A, Repr] with Equals

Linear Supertypes
Equals, GenIterableLike[A, Repr], GenTraversableLike[A, Repr], Parallelizable[A, ParIterable[A]], GenTraversableOnce[A], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. GenBagLike
  2. Equals
  3. GenIterableLike
  4. GenTraversableLike
  5. Parallelizable
  6. GenTraversableOnce
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. abstract type BagBucket <: collection.BagBucket[A]

    Attributes
    protected

Abstract Value Members

  1. abstract def ++[B >: A, That](that: GenTraversableOnce[B])(implicit bf: CanBuildFrom[Repr, B, That]): That

    Definition Classes
    GenTraversableLike
  2. abstract def -(elem: A): Repr

    elem
    returns

  3. abstract def /:[B](z: B)(op: (B, A) ⇒ B): B

    Definition Classes
    GenTraversableOnce
  4. abstract def :\[B](z: B)(op: (A, B) ⇒ B): B

    Definition Classes
    GenTraversableOnce
  5. abstract def added(elem: A, count: Int): Repr

    elem
    count
    returns

  6. abstract def aggregate[B](z: B)(seqop: (B, A) ⇒ B, combop: (B, B) ⇒ B): B

    Definition Classes
    GenTraversableOnce
  7. abstract def bagConfiguration: BagConfiguration[A, BagBucket]

    returns

    Attributes
    protected
  8. abstract def bucketsIterator: Iterator[BagBucket]

    Iterator over buckets

    Iterator over buckets

    returns

  9. abstract def canEqual(that: Any): Boolean

    Definition Classes
    Equals
  10. abstract def collect[B, That](pf: PartialFunction[A, B])(implicit bf: CanBuildFrom[Repr, B, That]): That

    Definition Classes
    GenTraversableLike
  11. abstract def contains(elem: A): Boolean

    Tests if some element is contained in this bag.

    Tests if some element is contained in this bag.

    elem

    the element to test for membership.

    returns

    true if elem is contained in this bag, false otherwise.

  12. abstract def copyToArray[B >: A](xs: Array[B], start: Int, len: Int): Unit

    Definition Classes
    GenTraversableOnce
  13. abstract def copyToArray[B >: A](xs: Array[B], start: Int): Unit

    Definition Classes
    GenTraversableOnce
  14. abstract def copyToArray[B >: A](xs: Array[B]): Unit

    Definition Classes
    GenTraversableOnce
  15. abstract def count(p: (A) ⇒ Boolean): Int

    Definition Classes
    GenTraversableOnce
  16. abstract def diff(that: GenBag[A]): Repr

    Returns a bag containing the multi-set difference of this bag with that bag

    Returns a bag containing the multi-set difference of this bag with that bag

    that

    the other bag

    returns

    bag containing the multi-set difference of this bag and that bag

  17. abstract def drop(n: Int): Repr

    Definition Classes
    GenTraversableLike
  18. abstract def dropWhile(pred: (A) ⇒ Boolean): Repr

    Definition Classes
    GenTraversableLike
  19. abstract def exists(pred: (A) ⇒ Boolean): Boolean

    Definition Classes
    GenTraversableOnce
  20. abstract def filter(pred: (A) ⇒ Boolean): Repr

    Definition Classes
    GenTraversableLike
  21. abstract def filterNot(pred: (A) ⇒ Boolean): Repr

    Definition Classes
    GenTraversableLike
  22. abstract def find(pred: (A) ⇒ Boolean): Option[A]

    Definition Classes
    GenTraversableOnce
  23. abstract def flatMap[B, That](f: (A) ⇒ GenTraversableOnce[B])(implicit bf: CanBuildFrom[Repr, B, That]): That

    Definition Classes
    GenTraversableLike
  24. abstract def fold[A1 >: A](z: A1)(op: (A1, A1) ⇒ A1): A1

    Definition Classes
    GenTraversableOnce
  25. abstract def foldLeft[B](z: B)(op: (B, A) ⇒ B): B

    Definition Classes
    GenTraversableOnce
  26. abstract def foldRight[B](z: B)(op: (A, B) ⇒ B): B

    Definition Classes
    GenTraversableOnce
  27. abstract def forall(pred: (A) ⇒ Boolean): Boolean

    Definition Classes
    GenTraversableOnce
  28. abstract def foreach[U](f: (A) ⇒ U): Unit

    Definition Classes
    GenTraversableLike → GenTraversableOnce
  29. abstract def getBucket(elem: A): Option[BagBucket]

    Returns the bucket associated with some key element.

    Returns the bucket associated with some key element. All elements in that bucket are equivalent to elem

    elem

    Key element

    returns

    Some(bucket) if the bucket exists in the bag or None if the bucket doesn't exist in the bag.

  30. abstract def groupBy[K](f: (A) ⇒ K): GenMap[K, Repr]

    Definition Classes
    GenTraversableLike
  31. abstract def hasDefiniteSize: Boolean

    Definition Classes
    GenTraversableOnce
  32. abstract def head: A

    Definition Classes
    GenTraversableLike
  33. abstract def headOption: Option[A]

    Definition Classes
    GenTraversableLike
  34. abstract def init: Repr

    Definition Classes
    GenTraversableLike
  35. abstract def intersect(that: GenBag[A]): Repr

    Returns a bag containing the multi-set intersection of this bag and that bag

    Returns a bag containing the multi-set intersection of this bag and that bag

    that

    the other bag

    returns

    bag containing the multi-set intersection of this bag and that bag

  36. abstract def isEmpty: Boolean

    Definition Classes
    GenTraversableOnce
  37. abstract def isTraversableAgain: Boolean

    Definition Classes
    GenTraversableLike → GenTraversableOnce
  38. abstract def last: A

    Definition Classes
    GenTraversableLike
  39. abstract def lastOption: Option[A]

    Definition Classes
    GenTraversableLike
  40. abstract def leastCommon: Repr

    Returns a Bag with the least common elements up to the equivalence defined in the BagConfiguration

    Returns a Bag with the least common elements up to the equivalence defined in the BagConfiguration

    returns

    An bag with the least common elements up to equivalence

  41. abstract def map[B, That](f: (A) ⇒ B)(implicit bf: CanBuildFrom[Repr, B, That]): That

    Definition Classes
    GenTraversableLike
  42. abstract def max[A1 >: A](implicit ord: Ordering[A1]): A

    Definition Classes
    GenTraversableOnce
  43. abstract def maxBy[B](f: (A) ⇒ B)(implicit cmp: Ordering[B]): A

    Definition Classes
    GenTraversableOnce
  44. abstract def maxUnion(that: GenBag[A]): Repr

    Returns a bag containing the multi-set max union (or generalized set union) of this bag and that bag

    Returns a bag containing the multi-set max union (or generalized set union) of this bag and that bag

    that

    the other bag

    returns

    bag containing the multi-set max union of this bag and that bag

  45. abstract def min[A1 >: A](implicit ord: Ordering[A1]): A

    Definition Classes
    GenTraversableOnce
  46. abstract def minBy[B](f: (A) ⇒ B)(implicit cmp: Ordering[B]): A

    Definition Classes
    GenTraversableOnce
  47. abstract def mkString: String

    Definition Classes
    GenTraversableOnce
  48. abstract def mkString(sep: String): String

    Definition Classes
    GenTraversableOnce
  49. abstract def mkString(start: String, sep: String, end: String): String

    Definition Classes
    GenTraversableOnce
  50. abstract def mostCommon: Repr

    Returns a Bag with the most common elements up to the equivalence defined in the BagConfiguration

    Returns a Bag with the most common elements up to the equivalence defined in the BagConfiguration

    returns

    An bag with the most common elements up to equivalence

  51. abstract def nonEmpty: Boolean

    Definition Classes
    GenTraversableOnce
  52. abstract def parCombiner: Combiner[A, ParIterable[A]]

    Attributes
    protected[this]
    Definition Classes
    Parallelizable
  53. abstract def partition(pred: (A) ⇒ Boolean): (Repr, Repr)

    Definition Classes
    GenTraversableLike
  54. abstract def product[A1 >: A](implicit num: Numeric[A1]): A1

    Definition Classes
    GenTraversableOnce
  55. abstract def reduce[A1 >: A](op: (A1, A1) ⇒ A1): A1

    Definition Classes
    GenTraversableOnce
  56. abstract def reduceLeftOption[B >: A](op: (B, A) ⇒ B): Option[B]

    Definition Classes
    GenTraversableOnce
  57. abstract def reduceOption[A1 >: A](op: (A1, A1) ⇒ A1): Option[A1]

    Definition Classes
    GenTraversableOnce
  58. abstract def reduceRight[B >: A](op: (A, B) ⇒ B): B

    Definition Classes
    GenTraversableOnce
  59. abstract def reduceRightOption[B >: A](op: (A, B) ⇒ B): Option[B]

    Definition Classes
    GenTraversableOnce
  60. abstract def repr: Repr

    Definition Classes
    GenTraversableLike
  61. abstract def sameElements[A1 >: A](that: GenIterable[A1]): Boolean

    Definition Classes
    GenIterableLike
  62. abstract def scan[B >: A, That](z: B)(op: (B, B) ⇒ B)(implicit cbf: CanBuildFrom[Repr, B, That]): That

    Definition Classes
    GenTraversableLike
  63. abstract def scanLeft[B, That](z: B)(op: (B, A) ⇒ B)(implicit bf: CanBuildFrom[Repr, B, That]): That

    Definition Classes
    GenTraversableLike
  64. abstract def scanRight[B, That](z: B)(op: (A, B) ⇒ B)(implicit bf: CanBuildFrom[Repr, B, That]): That

    Definition Classes
    GenTraversableLike
    Annotations
    @migration
    Migration

    (Changed in version 2.9.0) The behavior of scanRight has changed. The previous behavior can be reproduced with scanRight.reverse.

  65. abstract def seq: TraversableOnce[A]

    Definition Classes
    Parallelizable
  66. abstract def size: Int

    Definition Classes
    GenTraversableLike → GenTraversableOnce
  67. abstract def slice(unc_from: Int, unc_until: Int): Repr

    Definition Classes
    GenTraversableLike
  68. abstract def span(pred: (A) ⇒ Boolean): (Repr, Repr)

    Definition Classes
    GenTraversableLike
  69. abstract def splitAt(n: Int): (Repr, Repr)

    Definition Classes
    GenTraversableLike
  70. abstract def stringPrefix: String

    Definition Classes
    GenTraversableLike
  71. abstract def sum[A1 >: A](implicit num: Numeric[A1]): A1

    Definition Classes
    GenTraversableOnce
  72. abstract def tail: Repr

    Definition Classes
    GenTraversableLike
  73. abstract def take(n: Int): Repr

    Definition Classes
    GenTraversableLike
  74. abstract def takeWhile(pred: (A) ⇒ Boolean): Repr

    Definition Classes
    GenTraversableLike
  75. abstract def to[Col[_]](implicit cbf: CanBuildFrom[Nothing, A, Col[A]]): Col[A]

    Definition Classes
    GenTraversableOnce
  76. abstract def toArray[A1 >: A](implicit arg0: ClassTag[A1]): Array[A1]

    Definition Classes
    GenTraversableOnce
  77. abstract def toBuffer[A1 >: A]: Buffer[A1]

    Definition Classes
    GenTraversableOnce
  78. abstract def toIndexedSeq: immutable.IndexedSeq[A]

    Definition Classes
    GenTraversableOnce
  79. abstract def toIterable: GenIterable[A]

    Definition Classes
    GenTraversableOnce
  80. abstract def toIterator: Iterator[A]

    Definition Classes
    GenTraversableOnce
  81. abstract def toList: List[A]

    Definition Classes
    GenTraversableOnce
  82. abstract def toMap[K, V](implicit ev: <:<[A, (K, V)]): GenMap[K, V]

    Definition Classes
    GenTraversableOnce
  83. abstract def toSeq: GenSeq[A]

    Definition Classes
    GenTraversableOnce
  84. abstract def toSet[A1 >: A]: GenSet[A1]

    Definition Classes
    GenTraversableOnce
  85. abstract def toStream: Stream[A]

    Definition Classes
    GenTraversableOnce
  86. abstract def toTraversable: GenTraversable[A]

    Definition Classes
    GenTraversableOnce
  87. abstract def toVector: Vector[A]

    Definition Classes
    GenTraversableOnce
  88. abstract def union(that: GenBag[A]): Repr

    Returns a bag containing the multi-set union of this bag and that bag

    Returns a bag containing the multi-set union of this bag and that bag

    that

    the other bag

    returns

    bag containing the multi-set union of this bag and that bag

  89. abstract def zip[A1 >: A, B, That](that: GenIterable[B])(implicit bf: CanBuildFrom[Repr, (A1, B), That]): That

    Definition Classes
    GenIterableLike
  90. abstract def zipAll[B, A1 >: A, That](that: GenIterable[B], thisElem: A1, thatElem: B)(implicit bf: CanBuildFrom[Repr, (A1, B), That]): That

    Definition Classes
    GenIterableLike
  91. abstract def zipWithIndex[A1 >: A, That](implicit bf: CanBuildFrom[Repr, (A1, Int), That]): That

    Definition Classes
    GenIterableLike

Concrete Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def &(that: GenBag[A]): Repr

    Shorthand for intersect

    Shorthand for intersect

    Annotations
    @inline()
  5. def &~(that: GenBag[A]): Repr

    Shorthand for diff

    Shorthand for diff

    Annotations
    @inline()
  6. def +(elemCount: (A, Int)): Repr

    elemCount
    returns

  7. def +(elem: A): Repr

    Add the element to the bag

    Add the element to the bag

    elem
    returns

  8. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  9. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  10. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  11. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def distinctIterator: Iterator[A]

    Iterator over distinct elements

    Iterator over distinct elements

    returns

  13. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  14. def equals(that: Any): Boolean

    Definition Classes
    GenBagLike → Equals → AnyRef → Any
  15. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. final def getClass(): Class[_]

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

    Definition Classes
    GenBagLike → AnyRef → Any
  18. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  19. def iterator: Iterator[A]

    Definition Classes
    GenBagLike → GenIterableLike
  20. def maxMultiplicity: Int

    Query for the maximum multiplicity of elements in the bag.

    Query for the maximum multiplicity of elements in the bag.

    returns

    The maximum multiplicity of the bag

  21. def minMultiplicity: Int

    Query for the minimum multiplicity of elements in the bag.

    Query for the minimum multiplicity of elements in the bag.

    returns

    The minimum multiplicity of the bag

  22. def multiplicities: Iterator[(A, Int)]

  23. def multiplicity(elem: A): Int

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

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

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

    Definition Classes
    AnyRef
  27. def par: ParIterable[A]

    Definition Classes
    Parallelizable
  28. def subsetOf(that: GenBag[A]): Boolean

    Tests if this bag is subset of that bag, where the subset is the multiset subset.

    Tests if this bag is subset of that bag, where the subset is the multiset subset.

    that

    the other bag.

    returns

    true if this bag is subset of that bag, false if not.

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

    Definition Classes
    AnyRef
  30. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. def |(that: GenBag[A]): Repr

    Shorthand for union

    Shorthand for union

    Annotations
    @inline()

Deprecated Value Members

  1. def /:\[A1 >: A](z: A1)(op: (A1, A1) ⇒ A1): A1

    Definition Classes
    GenTraversableOnce
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) use fold instead

Inherited from Equals

Inherited from GenIterableLike[A, Repr]

Inherited from GenTraversableLike[A, Repr]

Inherited from Parallelizable[A, ParIterable[A]]

Inherited from GenTraversableOnce[A]

Inherited from AnyRef

Inherited from Any

Ungrouped