Trait

scala.collection

GenBagLike

Related Doc: package collection

Permalink

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
Visibility
  1. Public
  2. All

Type Members

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

    Permalink
    Attributes
    protected

Abstract Value Members

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

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

    Permalink

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

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

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

    Permalink

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

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

    Permalink

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

    Permalink

    Iterator over buckets

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

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

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

    Permalink

    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

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

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

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

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

    Permalink

    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

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

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

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

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

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

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

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

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

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

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

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

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

    Permalink

    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]

    Permalink
    Definition Classes
    GenTraversableLike
  31. abstract def hasDefiniteSize: Boolean

    Permalink
    Definition Classes
    GenTraversableOnce
  32. abstract def head: A

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

    Permalink
    Definition Classes
    GenTraversableLike
  34. abstract def init: Repr

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

    Permalink

    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

    Permalink
    Definition Classes
    GenTraversableOnce
  37. abstract def isTraversableAgain: Boolean

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

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

    Permalink
    Definition Classes
    GenTraversableLike
  40. abstract def leastCommon: Repr

    Permalink

    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

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

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

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

    Permalink

    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

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

    Permalink
    Definition Classes
    GenTraversableOnce
  47. abstract def mkString: String

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

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

    Permalink
    Definition Classes
    GenTraversableOnce
  50. abstract def mostCommon: Repr

    Permalink

    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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    GenTraversableOnce
  60. abstract def repr: Repr

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

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

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

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

    Permalink
    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]

    Permalink
    Definition Classes
    Parallelizable
  66. abstract def size: Int

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

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

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

    Permalink
    Definition Classes
    GenTraversableLike
  70. abstract def stringPrefix: String

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

    Permalink
    Definition Classes
    GenTraversableOnce
  72. abstract def tail: Repr

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Permalink

    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

    Permalink
    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

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

    Permalink
    Definition Classes
    GenIterableLike

Concrete Value Members

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

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

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

    Permalink

    Shorthand for intersect

    Shorthand for intersect

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

    Permalink

    Shorthand for diff

    Shorthand for diff

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

    Permalink

  6. def +(elem: A): Repr

    Permalink

    Add the element to the bag

  7. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def clone(): AnyRef

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

    Permalink

    Iterator over distinct elements

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

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

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

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

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

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

    Permalink
    Definition Classes
    Any
  17. def iterator: Iterator[A]

    Permalink
    Definition Classes
    GenBagLike → GenIterableLike
  18. def maxMultiplicity: Int

    Permalink

    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

  19. def minMultiplicity: Int

    Permalink

    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

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

    Permalink
  21. def multiplicity(elem: A): Int

    Permalink
  22. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  25. def par: ParIterable[A]

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

    Permalink

    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.

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

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

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

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

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

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

    Permalink

    Shorthand for union

    Shorthand for union

    Annotations
    @inline()

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