case class BagSortedMap[A](smap: SortedMap[A, Int])(implicit evidence$1: Ordering[A]) extends Bag[A] with Product with Serializable
- Alphabetic
- By Inheritance
- BagSortedMap
- Serializable
- Product
- Equals
- Bag
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def add(elem: A, n: Int): BagSortedMap[A]
A more efficient version of add
A more efficient version of add
- Definition Classes
- BagSortedMap → Bag
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def asSortedMap: SortedMap[A, Int]
- Definition Classes
- BagSortedMap → Bag
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def contains(elem: A): Boolean
Check if a bag contains an element
Check if a bag contains an element
- Definition Classes
- BagSortedMap → Bag
- def delete(elem: A): BagSortedMap[A]
Deletes an element and returns the new bag It doesn't complain if the element doesn't exist
Deletes an element and returns the new bag It doesn't complain if the element doesn't exist
- Definition Classes
- BagSortedMap → Bag
- def elems: Iterator[(A, Int)]
Elements of a Bag with their multiplicity
Elements of a Bag with their multiplicity
- Definition Classes
- BagSortedMap → Bag
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def from(t: Iterable[A]): Bag[A]
- Definition Classes
- Bag
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def insert(elem: A): BagSortedMap[A]
Inserts an element in a bag and returns the new bag
Inserts an element in a bag and returns the new bag
- Definition Classes
- BagSortedMap → Bag
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def multiplicity(elem: A): Int
Multiplicity of an element in a bag
Multiplicity of an element in a bag
- Definition Classes
- BagSortedMap → Bag
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def size: Int
Size returns the total number of elements.
Size returns the total number of elements. Notice that if an element appears 4 times, it adds 4 to the counter
- Definition Classes
- Bag
- val smap: SortedMap[A, Int]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toSeq: Seq[A]
- Definition Classes
- Bag
- def toString(): String
- Definition Classes
- BagSortedMap → AnyRef → Any
- def union(other: Bag[A]): Bag[A]
Union of two bags
Union of two bags
- Definition Classes
- Bag
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])