Class OutputSequenceIndexed<T,S>
Object
OutputSequenceIndexed<T,S>
- Type Parameters:
T- element-type in generatorS- index-type in sequence
A sequence of outputs that use the same generator with non-incrementing indexes for each output.
An index is associated with each output that must be unique.
- Author:
- Owen Feehan
-
Method Summary
-
Method Details
-
add
Outputs an additional element in the sequence.This is a thread-safe method.
- Parameters:
element- the elementindex- index of the element to output- Throws:
OutputWriteFailedException- if the output cannot be successfully written.
-
add
Outputs an additional element in the sequence.This is a thread-safe method.
- Parameters:
element- the elementindex- index of the element to output, if it exists. if it doesn't exist, the element will be written without any name.- Throws:
OutputWriteFailedException- if the output cannot be successfully written.
-