Class InOut<T>

  • Type Parameters:
    T - actual type parameter of value


    public class InOut<T>
    extends java.lang.Object
    Container type for handling output parameters of synchronous RPC calls.

    Due to lack of output parameters in Java language a container is required for emulation of output parameters within synchronous RPC calls.

    • Constructor Summary

      Constructors 
      Constructor Description
      InOut​()
      Create new instance initiated with null.
      InOut​(T value)
      Create new instance initiated with value.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      T getValue​()
      Get current value.
      int hashCode​()  
      void setValue​(T value)
      Set current value to value.
      • Methods inherited from class java.lang.Object

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

      • InOut

        public InOut​()
        Create new instance initiated with null.
      • InOut

        public InOut​(T value)
        Create new instance initiated with value.
        Parameters:
        value - initial value of object
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • getValue

        public T getValue​()
        Get current value.
        Returns:
        current value
      • hashCode

        public int hashCode​()
        Overrides:
        hashCode in class java.lang.Object
      • setValue

        public void setValue​(T value)
        Set current value to value.
        Parameters:
        value - new value