case class RingBufferQueue[A](capacity: Int, size: Int, queue: Queue[A]) extends RingBuffer[A] with Product with Serializable
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- RingBufferQueue
- Serializable
- Serializable
- Product
- Equals
- RingBuffer
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new RingBufferQueue(capacity: Int, size: Int, queue: Queue[A])
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val capacity: Int
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
isFull: Boolean
Checks if the ring buffer is full or not
Checks if the ring buffer is full or not
- returns
true if it is full, false otherwise
- Definition Classes
- RingBufferQueue → RingBuffer
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
maxOfElements(implicit num: Numeric[A]): A
Returns the maximum among the elements in this buffer.
Returns the maximum among the elements in this buffer.
- num
implicit parameter
- returns
The maximum element in the buffer
- Definition Classes
- RingBufferQueue → RingBuffer
-
def
minOfElements(implicit num: Numeric[A]): A
Returns the minimum among the elements in this buffer.
Returns the minimum among the elements in this buffer.
- num
implicit parameter
- returns
The minimimum element in the buffer
- Definition Classes
- RingBufferQueue → RingBuffer
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
push(elem: A): RingBufferQueue[A]
Push an element into the array buffer
Push an element into the array buffer
- elem
the element to be added in the ring buffer
- returns
A new, immutable, RingBuffer with the new element added
- Definition Classes
- RingBufferQueue → RingBuffer
- val queue: Queue[A]
- val size: Int
-
def
sumElements(implicit num: Numeric[A]): A
Compute the sum of the elements.
Compute the sum of the elements.
- num
implicit parameter
- returns
The sum of the elements
- Definition Classes
- RingBufferQueue → RingBuffer
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
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()