public abstract class AbstractStepsWithTail<CC,Sub,Semi extends Sub>
extends java.lang.Object
Subclasses MUST decrement maxN
when consuming elements, or this will not work!
Constructor and Description |
---|
AbstractStepsWithTail(CC underlying,
long maxN) |
Modifier and Type | Method and Description |
---|---|
int |
characteristics() |
long |
estimateSize() |
boolean |
hasNext() |
protected long |
maxN() |
protected abstract boolean |
myIsEmpty(CC cc) |
protected abstract CC |
myTailOf(CC cc) |
AbstractStepsWithTail<CC,Sub,Semi> |
prepareParallelOperation() |
abstract Semi |
semiclone(int chunk) |
Sub |
substep() |
protected CC |
underlying() |
public AbstractStepsWithTail(CC underlying, long maxN)
public int characteristics()
public long estimateSize()
public boolean hasNext()
protected final long maxN()
protected abstract boolean myIsEmpty(CC cc)
public AbstractStepsWithTail<CC,Sub,Semi> prepareParallelOperation()
public abstract Semi semiclone(int chunk)
public Sub substep()
protected final CC underlying()