Package com.hazelcast.jet.accumulator
Class MutableReference<T>
- java.lang.Object
-
- com.hazelcast.jet.accumulator.MutableReference<T>
-
- Type Parameters:
T
- referenced object type
public class MutableReference<T> extends java.lang.Object
Mutable container of an object reference.- Since:
- Jet 3.0
-
-
Constructor Summary
Constructors Constructor Description MutableReference()
Creates a new instance with anull
value.MutableReference(T value)
Creates a new instance with the specified value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
T
get()
Returns the current value.int
hashCode()
boolean
isNull()
Tells whether the current value isnull
.MutableReference
set(T value)
Sets the value as given.java.lang.String
toString()
-
-
-
Constructor Detail
-
MutableReference
public MutableReference()
Creates a new instance with anull
value.
-
MutableReference
public MutableReference(T value)
Creates a new instance with the specified value.
-
-
Method Detail
-
get
public T get()
Returns the current value.
-
isNull
public boolean isNull()
Tells whether the current value isnull
.
-
set
public MutableReference set(T value)
Sets the value as given.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-