T
- Type of the value (String, Long etc)public class ValueGenerationBlock<T> extends Object implements Serializable
Constructor and Description |
---|
ValueGenerationBlock(List<T> oid)
Constructor.
|
ValueGenerationBlock(T[] values)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addBlock(ValueGenerationBlock<T> block)
Method to append a block onto this block.
|
T |
current()
Accessor for the current value.
|
boolean |
hasNext()
Accessor for whether there are more values remaining in the block.
|
T |
next()
Accessor for the next value, or null if block values exhausted
|
String |
toString()
Stringify method.
|
public ValueGenerationBlock(T[] values)
values
- The block of objects that will be considered the "values"public T current()
NoSuchElementException
- Thrown if no current valuepublic T next()
public boolean hasNext()
public void addBlock(ValueGenerationBlock<T> block)
block
- The other blockCopyright © 2017. All rights reserved.