Uses of Package
org.refcodes.generator
-
Classes in org.refcodes.generator used by org.refcodes.generatorClassDescriptionThe
AbstractCounterComposite
combines severalCounter
instances which to use when generating data by daisy chaining the provided generator instances (end of counter 1 increases counter 2, end of counter 2 increases counter 3, ..., end of counter n-1 increases counter n, the end of a counter is determined withAbstractCounterComposite.hasNext()
and a counter is increased bynext()
).TheAlphabetCounter
generates values by counting with an an alphabet of "digits", a decimal alphabet would contain the characters "0", "1", "2", "3", "4", "5", "6", "7", "8" and "9", a hexadecimal alphabet would contain the characters "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F".TheAlphabetCounterMetrics
define the metrics for configuring anAlphabetCounter
such as the characters used as alphabet and the counter's min and max lengths (duplicate definitions of characters are ignored).Base interface for aGenerator
using a buffer being filled upon demand or time schedule and which's buffering functionality may be suspended (Suspendable.suspend()
) so that theGenerator
does only emit elements already present in the puffer till all elements in the buffer are expended (and does not place any new elements into the buffer to be emitted).ACounter
is aGenerator
with means to reset theCounter
state to its initial position (value) from which to begin counting again, e.g. whenhasNext()
returns false, then callingResetable.reset()
will make theCounter
instance to start again from the very first beginning andhasNext()
will return true until the "end" of the countable elements has been reached (by consuming them withnext()
).AGenerator
generates objects of a dedicated type in mass production.TheIdCounterComposite
combines severalIdCounter
instances which to use when generating data by daisy chaining the provided generator instances (end of counter 1 increases counter 2, end of counter 2 increases counter 3, ..., end of counter n-1 increases counter n, the end of a counter is determined withAbstractCounterComposite.hasNext()
and a counter is increased byIdCounterComposite.next()
).TheIdGenerator
interface defines generator functionality forString
instances.TheSeriesMonitor
is aGenerator
with means to monitor the last fully processed (completed) ID of the series of generated IDs with all preceding generated IDs also being fully processed (completed): All IDs till the last fully processed (completed) ID have been processed.TheUniqueIdGenerator
is an implementation of theGenerator
capable of generating TIDString
instances unique on the system on which them were generated to IDs generated with the sameUniqueIdGenerator
on another system.Defines the type of BASE-64 encoding to use for generated IDs.The Class UniqueIdGeneratorSingleton.