Generator.next()
method will get the next generated value. As the
Generator
is a generic type, you may implement
generators for many different types. An
IdGenerator
for example creates unique
String
values (unique in the scope of your infrastructure
given that you do not run the same application on the same machine more than
one).Interface | Description |
---|---|
Generator<T> |
A
Generator generates objects of a dedicated type in mass production. |
IdGenerator |
The Interface IdGenerator.
|
Class | Description |
---|---|
UniqueIdGeneratorImpl |
The
UniqueIdGeneratorImpl is an implementation of the
Generator capable of generating ID String instances unique on
the system on which them were generated to IDs generated with the same
UniqueIdGeneratorImpl on another system. |
UniqueIdGeneratorSingleton |
The Class UniqueIdGeneratorSingleton.
|
Copyright © 2018. All rights reserved.