public interface GeneratorIF
DefaultGenerator.java| Modifier and Type | Method and Description |
|---|---|
long |
generate(java.lang.String namespace)
Generate a long value belongs to the given namespace.
|
java.util.Map<java.lang.String,java.lang.Long> |
getMap()
Get the map of the current namepsacce number mapping.
|
void |
reset(java.lang.String namespace)
Reset the generation counter and will set the current count to zero.
|
void |
reset(java.lang.String namespace,
long value)
Reset the generation counter and set the current value to the given value.
|
long generate(java.lang.String namespace)
namespaced - the name space that should be used for number generation.void reset(java.lang.String namespace)
namespaced - the name space that should be reset.void reset(java.lang.String namespace,
long value)
namespaced - the name space that should be reset.value - the new counter setting.java.util.Map<java.lang.String,java.lang.Long> getMap()