Class Output<T>

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

    public class Output<T>
    extends Object
    Simple struct-like class for output parameters.
    • 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 withe the given value.
        Parameters:
        value - the initial value
    • Method Detail

      • toString

        public String toString()
        Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:
           getClass().getName() + '@' + Integer.toHexString(hashCode())

        See Writing a useful toString method if you intend implementing your own toString method.

        Overrides:
        toString in class Object
        Returns:
        a printable representation of this object.