case class BagSortedMap[A](smap: SortedMap[A, Int])(implicit evidence$1: Ordering[A]) extends Bag[A] with Product with Serializable
- Source
- BagSortedMap.scala
- Alphabetic
- By Inheritance
- BagSortedMap
- Serializable
- Serializable
- Product
- Equals
- Bag
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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( ... ) @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
equals(other: Any): Boolean
- Definition Classes
- Bag → AnyRef → Any
-
def
from(t: Iterable[A]): Bag[A]
- Definition Classes
- Bag
-
final
def
getClass(): Class[_]
- 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
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( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )