- 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
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()
).-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.mixin.ChildrenAccessor
org.refcodes.mixin.ChildrenAccessor.ChildrenBuilder<T extends Object,
B extends org.refcodes.mixin.ChildrenAccessor.ChildrenBuilder<T, B>>, org.refcodes.mixin.ChildrenAccessor.ChildrenMutator<T extends Object>, org.refcodes.mixin.ChildrenAccessor.ChildrenProperty<T extends Object> -
Constructor Summary
ConstructorDescriptionIdCounterComposite
(IdCounter... aCounters) Constructs aIdCounterComposite
daisy chaining the providedIdCounter
instances. -
Method Summary
Methods inherited from class org.refcodes.generator.AbstractCounterComposite
actualCounters, getChildren, hasNext, nextCounters, reset
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
Methods inherited from interface org.refcodes.mixin.Resetable
reset
-
Constructor Details
-
IdCounterComposite
Constructs aIdCounterComposite
daisy chaining the providedIdCounter
instances.- Parameters:
aCounters
- TheIdCounter
instances to be daisy chained.
-
-
Method Details