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 Detail

      • create

        T create​(long seed,
                 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