Class

io.chymyst.jc

MutableQueueBag

Related Doc: package jc

Permalink

final class MutableQueueBag[T] extends MutableBag[T]

Implementation using java.util.concurrent.ConcurrentLinkedQueue.

This is suitable for molecule value types that have a large number of possible values (so that a Map storage would be inefficient), or for cases where we do not need to group molecules by value (pipelined molecules).

Linear Supertypes
MutableBag[T], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MutableQueueBag
  2. MutableBag
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MutableQueueBag()

    Permalink

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(v: T): Unit

    Permalink
    Definition Classes
    MutableQueueBagMutableBag
  5. def allValues: Iterator[T]

    Permalink

    List all values, perhaps with repetitions.

    List all values, perhaps with repetitions. It is not guaranteed that the values will be repeated the correct number of times.

    returns

    An iterator of values.

    Definition Classes
    MutableQueueBagMutableBag
  6. def allValuesSkipping(skipping: MutableMultiset[T]): Iterator[T]

    Permalink

    List all values, with repetitions, excluding values from a given sequence (which can also contain repeated values).

    List all values, with repetitions, excluding values from a given sequence (which can also contain repeated values). It is guaranteed that the values will be repeated the correct number of times.

    skipping

    A sequence of values that should be skipped while running the iterator.

    returns

    An iterator of values.

    Definition Classes
    MutableQueueBagMutableBag
  7. final def asInstanceOf[T0]: T0

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

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

    Permalink
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def find(predicate: (T) ⇒ Boolean): Option[T]

    Permalink
    Definition Classes
    MutableQueueBagMutableBag
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. def getCountMap: Map[T, Int]

    Permalink
    Definition Classes
    MutableQueueBagMutableBag
  15. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  16. def isEmpty: Boolean

    Permalink
    Definition Classes
    MutableQueueBagMutableBag
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. def iterator: Iterator[T]

    Permalink
    Attributes
    protected
    Definition Classes
    MutableQueueBagMutableBag
  19. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  22. def remove(v: T): Boolean

    Permalink

    Remove value from the bag.

    Remove value from the bag. This is expected to succeed. If the value was not present in the bag, the removal fails.

    v

    Value to remove.

    returns

    true if removal was successful, false otherwise.

    Definition Classes
    MutableQueueBagMutableBag
  23. def size: Int

    Permalink

    This method is very slow due to _O_(_n_) queue traversal.

    This method is very slow due to _O_(_n_) queue traversal. Do not use in performance-critical places.

    returns

    Total number of elements in the bag.

    Definition Classes
    MutableQueueBagMutableBag
  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  25. def takeAny(count: Int): Seq[T]

    Permalink
    Definition Classes
    MutableBag
  26. def takeOne: Option[T]

    Permalink
    Definition Classes
    MutableBag
  27. def toString(): String

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

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

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

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

Inherited from MutableBag[T]

Inherited from AnyRef

Inherited from Any

Ungrouped