Class Mutable<T>
java.lang.Object
io.nflow.engine.workflow.definition.Mutable<T>
- Type Parameters:
T
- The class of object to be wrapped.
Wrapper class to provide mutable object for immutable value.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
val
The wrapped value.
-
-
Constructor Details
-
Mutable
public Mutable()Default constructor. -
Mutable
Creates a wrapper forval
.- Parameters:
val
- Any object to be wrapped.
-
-
Method Details
-
setVal
Sets the new value forval
.- Parameters:
val
- New value.
-
getVal
Returns the wrapped value.- Returns:
- Wrapped value.
-
toString
Returns the string representation of theval
. -
equals
-
hashCode
public int hashCode()
-