Class Output<T>

  • Type Parameters:
    T - The type of the parameter.

    public class Output<T>
    extends java.lang.Object
    Simple struct-like class for output parameters.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      T value
      The value field
    • Constructor Summary

      Constructors 
      Constructor Description
      Output()
      Constructs an empty Output
      Output​(T value)
      Constructs an Output with the given value.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String toString()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • value

        public T value
        The value field
    • Constructor Detail

      • Output

        public Output()
        Constructs an empty Output
      • Output

        public Output​(T value)
        Constructs an Output with the given value.
        Parameters:
        value - the initial value
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object