Class InOut<T>
- java.lang.Object
-
- sk.ipesoft.d2000.d2japi.annotations.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.
-
-
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 tovalue
.
-
-
-
Constructor Detail
-
InOut
public InOut()
Create new instance initiated withnull
.
-
InOut
public InOut(T value)
Create new instance initiated withvalue
.- Parameters:
value
- initial value of object
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
getValue
public T getValue()
Get current value.- Returns:
- current value
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
setValue
public void setValue(T value)
Set current value tovalue
.- Parameters:
value
- new value
-
-