Interface Generator<T>

  • Type Parameters:
    T - type of objects to create
    All Superinterfaces:
    Serializable
    All Known Implementing Classes:
    IntegerPartitionGenerator, MpiPartitionGenerator

    public interface Generator<T>
    extends Serializable
    A generator for a sequence of objects of type . Generators differ from Iterators in that they do not have a backing Collection. Consequently, there is no need for a remove() method.
    Author:
    Tilman Neumann
    • Method Detail

      • hasNext

        boolean hasNext()
        Returns:
        true if there is another object to generate
      • next

        T next()
        Returns:
        next object