public abstract class SpinedBuffer<E,T_ARR>
extends java.lang.Object
implements java.lang.Iterable<E>
| Modifier and Type | Class and Description |
|---|---|
static class |
SpinedBuffer.Of<E> |
static class |
SpinedBuffer.OfDouble |
static class |
SpinedBuffer.OfInt |
static class |
SpinedBuffer.OfLong |
| Modifier and Type | Method and Description |
|---|---|
protected abstract int |
arrayLength(T_ARR array) |
void |
clear()
Remove all data from the buffer
|
long |
count()
How many elements are currently in the buffer?
|
boolean |
isEmpty()
Is the buffer currently empty?
|
abstract java.util.Iterator<E> |
iterator() |
protected abstract T_ARR |
newArray(int size) |
protected abstract T_ARR[] |
newArrayArray(int size) |
public abstract java.util.Iterator<E> iterator()
iterator in interface java.lang.Iterable<E>protected abstract T_ARR[] newArrayArray(int size)
protected abstract T_ARR newArray(int size)
protected abstract int arrayLength(T_ARR array)
public boolean isEmpty()
public long count()
public void clear()