Packages

case class BagSortedMap[A](smap: SortedMap[A, Int])(implicit evidence$1: Ordering[A]) extends Bag[A] with Product with Serializable

Source
BagSortedMap.scala
Linear Supertypes
Serializable, Serializable, Product, Equals, Bag[A], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BagSortedMap
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Bag
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new BagSortedMap(smap: SortedMap[A, Int])(implicit arg0: Ordering[A])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def add(elem: A, n: Int): BagSortedMap[A]

    A more efficient version of add

    A more efficient version of add

    Definition Classes
    BagSortedMapBag
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def asSortedMap: SortedMap[A, Int]
    Definition Classes
    BagSortedMapBag
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  8. def contains(elem: A): Boolean

    Check if a bag contains an element

    Check if a bag contains an element

    Definition Classes
    BagSortedMapBag
  9. 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
    BagSortedMapBag
  10. def elems: Iterator[(A, Int)]

    Elements of a Bag with their multiplicity

    Elements of a Bag with their multiplicity

    Definition Classes
    BagSortedMapBag
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(other: Any): Boolean
    Definition Classes
    Bag → AnyRef → Any
  13. def from(t: Iterable[A]): Bag[A]
    Definition Classes
    Bag
  14. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. 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
    BagSortedMapBag
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. def multiplicity(elem: A): Int

    Multiplicity of an element in a bag

    Multiplicity of an element in a bag

    Definition Classes
    BagSortedMapBag
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. 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
  22. val smap: SortedMap[A, Int]
  23. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  24. def toSeq: Seq[A]
    Definition Classes
    Bag
  25. def toString(): String
    Definition Classes
    BagSortedMap → AnyRef → Any
  26. def union(other: Bag[A]): Bag[A]

    Union of two bags

    Union of two bags

    Definition Classes
    Bag
  27. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  29. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Bag[A]

Inherited from AnyRef

Inherited from Any

Ungrouped