Class CombinedListGenerator<T>

Object
CombinedListGenerator<T>
Type Parameters:
T - element-type
All Implemented Interfaces:
Generator<T>, MultipleFileTypeGenerator<T>, ElementWriter<T>
Direct Known Subclasses:
ObjectWithBoundingBoxGenerator

public class CombinedListGenerator<T> extends Object implements MultipleFileTypeGenerator<T>
Several generators combined together with a common element-type.

One generator must always exist. Zero generators is never allowed.

Each generator is associated with a unique output-name.

Author:
Owen Feehan
  • Constructor Details

    • CombinedListGenerator

      public CombinedListGenerator(NameValue<Generator<T>> namedGenerator)
      Create from a single named generator.
      Parameters:
      namedGenerator - the generator with an associated name.
    • CombinedListGenerator

      @SafeVarargs public CombinedListGenerator(Generator<T>... generator)
      Create from multiple named generators.
      Parameters:
      generator - the generators, each with an associated name.
    • CombinedListGenerator

      public CombinedListGenerator(Stream<NameValue<Generator<T>>> namedGenerators)
      Create from a stream of named generators.
      Parameters:
      namedGenerators - the stream of generators, each with an associated name.
    • CombinedListGenerator

      public CombinedListGenerator()
  • Method Details