T - referenced object typepublic class MutableReference<T> extends Object
| Constructor and Description |
|---|
MutableReference()
Creates a new instance with a
null value. |
MutableReference(T value)
Creates a new instance with the specified value.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
T |
get()
Returns the current value.
|
int |
hashCode() |
boolean |
isPresent()
Returns
true if the current value is not null, false
otherwise. |
MutableReference |
set(T value)
Sets the value as given.
|
String |
toString() |
public MutableReference()
null value.public MutableReference(T value)
public T get()
public boolean isPresent()
true if the current value is not null, false
otherwise.public MutableReference set(T value)
Copyright © 2018 Hazelcast, Inc.. All rights reserved.