Interface RandomStreams.SeededObjectFactory<T>

  • Type Parameters:
    T - the object type
    Enclosing class:
    RandomStreams
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public static interface RandomStreams.SeededObjectFactory<T>
    A factory for creating objects using a seed and a using a source of randomness.
    Since:
    1.5
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      T create​(long seed, org.apache.commons.rng.UniformRandomProvider source)
      Creates the object.
    • Method Detail

      • create

        T create​(long seed,
                 org.apache.commons.rng.UniformRandomProvider source)
        Creates the object.
        Parameters:
        seed - Seed used to initialise the instance.
        source - Source of randomness used to initialise the instance.
        Returns:
        the object