Class MutableReference<T>

java.lang.Object
com.hazelcast.jet.accumulator.MutableReference<T>
Type Parameters:
T - referenced object type

public class MutableReference<T> extends Object
Mutable container of an object reference.
Since:
Jet 3.0
  • Constructor Details

    • MutableReference

      public MutableReference()
      Creates a new instance with a null value.
    • MutableReference

      public MutableReference(T value)
      Creates a new instance with the specified value.
  • Method Details

    • get

      public T get()
      Returns the current value.
    • isNull

      public boolean isNull()
      Tells whether the current value is null.
    • set

      public MutableReference set(T value)
      Sets the value as given.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object