Class IdCounterComposite

java.lang.Object
org.refcodes.generator.AbstractCounterComposite<String>
org.refcodes.generator.IdCounterComposite
All Implemented Interfaces:
Iterator<String>, Counter<String>, Generator<String>, IdCounter, IdGenerator, org.refcodes.mixin.ChildrenAccessor<Counter<String>[]>, org.refcodes.mixin.Resetable
Direct Known Subclasses:
AlphabetCounterComposite

public class IdCounterComposite extends AbstractCounterComposite<String> implements IdCounter
The IdCounterComposite combines several IdCounter 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 with AbstractCounterComposite.hasNext() and a counter is increased by next()).