T - type of the reference.public class MutableReference<T>
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
MutableReference()
Default constructor.
|
MutableReference(T ref)
Set the reference at construction.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
T |
get()
Get the current value of the reference.
|
int |
hashCode() |
void |
set(T ref)
Set the current value of the reference.
|
java.lang.String |
toString() |
public T ref
public MutableReference()
public MutableReference(T ref)
ref - to be set.public T get()
public void set(T ref)
ref - to be set.public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2014-2019 Real Logic Ltd. All Rights Reserved.