Output

public class Output extends Object

Simple struct-like class for output parameters.

Field Summary

public T value The value field

Public Constructor Summary

Output()
Constructs an empty Output
Output(T value)
Constructs an Output with the given value.

Public Method Summary

String
toString()
Returns a string containing a concise, human-readable description of this object.

Inherited Method Summary

Fields

public T value

The value field

Public Constructors

public Output ()

Constructs an empty Output

public Output (T value)

Constructs an Output with the given value.

Parameters
value the initial value

Public Methods

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.

Returns
  • a printable representation of this object.