Packages

c

scalation.util

CircularQueue

class CircularQueue[A] extends AnyRef

The CircularQueue provides a circular queue that can be used to store the latest 'cap' elements.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CircularQueue
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new CircularQueue(cap: Int)(implicit arg0: ClassTag[A])

    cap

    the capacity or maximum number of elements that can be stored

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def +=(elem: A): CircularQueue.this.type

    Add element 'elem' to the front of 'this' circular queue, overwriting the oldest element when queue is full.

    Add element 'elem' to the front of 'this' circular queue, overwriting the oldest element when queue is full.

    elem

    the element to add

  4. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  7. def dequeue(): A

    Remove the oldest element from the rear of 'this' circular queue, throwing an exception when the queue is empty

  8. def dequeueOrNull(): A

    Remove the oldest element from the rear of 'this' circular queue, returning null when the queue is empty.

  9. def enqueue(elem: A): CircularQueue.this.type

    Add element 'elem' to the front of 'this' circular queue, throwing an exeception when the queue is full.

    Add element 'elem' to the front of 'this' circular queue, throwing an exeception when the queue is full.

    elem

    the element to add

  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. def isEmpty: Boolean

    Return whether the queue is empty (i.e., has no element).

  15. def isFull: Boolean

    Return whether the queue is full (i.e., no space left for new elements).

  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. def newBuilder: Builder[A, CircularQueue[A]]

    FIX - TBD

    FIX - TBD

    Attributes
    protected[this]
  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

    Return the current size of the queue (number of elements contained).

  22. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  23. def toString(): String

    Convert 'this' circular queue into a string.

    Convert 'this' circular queue into a string. FIX - also print empty slot

    Definition Classes
    CircularQueue → AnyRef → Any
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  26. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

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

Inherited from AnyRef

Inherited from Any

Ungrouped