Class OutParameter<E>

  • Type Parameters:
    E - Out Result

    public class OutParameter<E>
    extends Object
    Out Parameter to enable try-Methods for simpler code. A try method using an OutParameter should always initialize the OutParameter first, so you have a valid reference.
    • Constructor Detail

      • OutParameter

        public OutParameter()
    • Method Detail

      • get

        public E get()
        Gets the Result of the OutParameter.
        Returns:
        Result
      • set

        public void set​(E e)
        Sets the OutParameter.
        Parameters:
        e - Result
      • toString

        public String toString()
        Overrides the toString Method to print the reference of the OutParameter instead of itself.
        Overrides:
        toString in class Object
        Returns:
        String Representation of the Result.