Package de.scravy.bedrock
Class RingBuffer<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractQueue<E>
de.scravy.bedrock.RingBuffer<E>
- All Implemented Interfaces:
Container<E>,ExtendedIterable<E>,HasLengthAtLeast,Iterable<E>,Collection<E>,Queue<E>
public class RingBuffer<E> extends AbstractQueue<E> implements ExtendedIterable<E>, Container<E>
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.scravy.bedrock.ExtendedIterable
ExtendedIterable.ForEachWithIndexConsumer<T> -
Constructor Summary
Constructors Constructor Description RingBuffer(int capacity) -
Method Summary
Methods inherited from class java.util.AbstractCollection
contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArrayMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
contains, containsAll, equals, hashCode, isEmpty, parallelStream, remove, removeAll, removeIf, retainAll, spliterator, toArray, toArray, toArray
-
Constructor Details
-
Method Details
-
stream
-
iterator
- Specified by:
iteratorin interfaceCollection<E>- Specified by:
iteratorin interfaceIterable<E>- Specified by:
iteratorin classAbstractCollection<E>
-
size
- Specified by:
sizein interfaceCollection<E>- Specified by:
sizein classAbstractCollection<E>
-
capacity
-
offer
-
poll
-
peek
-
toString
- Overrides:
toStringin classAbstractCollection<E>
-