Trait/Object

es.weso.collection

Bag

Related Docs: object Bag | package collection

Permalink

trait Bag[A] extends AnyRef

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Bag
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def asSortedMap: SortedMap[A, Int]

    Permalink
  2. abstract def contains(elem: A): Boolean

    Permalink

    Check if a bag contains an element

  3. abstract def delete(elem: A): Bag[A]

    Permalink

    Deletes an element and returns the new bag It doesn't complain if the element doesn't exist

  4. abstract def elems: Iterator[(A, Int)]

    Permalink

    Elements of a Bag with their multiplicity

  5. abstract def insert(elem: A): Bag[A]

    Permalink

    Inserts an element in a bag and returns the new bag

  6. abstract def multiplicity(elem: A): Int

    Permalink

    Multiplicity of an element in a bag

Concrete Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def add(elem: A, n: Int): Bag[A]

    Permalink

    add an element n times to a bag This default implementation is not efficient, it should be overridden

  5. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(other: Any): Boolean

    Permalink
    Definition Classes
    Bag → AnyRef → Any
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. def from(t: Traversable[A]): Bag[A]

    Permalink
  11. final def getClass(): Class[_]

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

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

    Permalink
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  17. def size: Int

    Permalink

    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

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

    Permalink
    Definition Classes
    AnyRef
  19. def toSeq: Seq[A]

    Permalink
  20. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  21. def union(other: Bag[A]): Bag[A]

    Permalink

    Union of two bags

  22. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped