T
- Type of the generated value (Long, String etc)public interface ValueGenerator<T>
Modifier and Type | Method and Description |
---|---|
void |
allocate(int additional)
Provides a hint to the implementation that the application
will need
additional sequence value objects in
short order. |
T |
current()
Returns the current sequence value object if it is available.
|
long |
currentValue()
Returns the current sequence value as a long.
|
String |
getName()
Returns the fully qualified name of the
Sequence . |
T |
next()
Returns the next sequence value as an Object.
|
long |
nextValue()
Returns the next sequence value as a long.
|
String getName()
Sequence
.T next()
void allocate(int additional)
additional
sequence value objects in
short order. There is no externally visible behavior of this
method. It is used to potentially improve the efficiency of
the algorithm of obtaining additional sequence value objects.additional
- the number of additional values to allocateT current()
long nextValue()
long currentValue()
Copyright © 2015. All rights reserved.