Class VariateSingleValue<T>

  • Type Parameters:
    T - the type of the random variate values.
    All Implemented Interfaces:
    Variate<T>

    public final class VariateSingleValue<T>
    extends java.lang.Object
    implements Variate<T>
    This class represents a single-value T-type random variate.
    • Constructor Summary

      Constructors 
      Constructor Description
      VariateSingleValue​(T value)
      Constructs a single-value random variate.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T value()
      Returns a value (instance) of the random variate.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • VariateSingleValue

        public VariateSingleValue​(T value)
        Constructs a single-value random variate.
        Parameters:
        value - the value of the random variate.
    • Method Detail

      • value

        public T value()
        Description copied from interface: Variate
        Returns a value (instance) of the random variate.
        Specified by:
        value in interface Variate<T>
        Returns:
        a random variate value.