public class GoshawkObj
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
GoshawkObj[] |
getReferences()
Get the objects pointed to from the current object.
|
java.nio.ByteBuffer |
getValue()
Returns the current value of this object.
|
TxnId |
getVersion()
Get the current version of the object.
|
void |
set(java.nio.ByteBuffer value,
GoshawkObj... references)
Sets the value and references of the current object.
|
java.lang.String |
toString() |
public final VarUUId id
public java.lang.String toString()
toString
in class java.lang.Object
public java.nio.ByteBuffer getValue()
public GoshawkObj[] getReferences()
GoshawkObj
to which the current object refers. As with getValue,
the array is a copy of the underlying array, so you are safe to modify it, but you will need
to call one of the set methods for your modifications to take any effect.public TxnId getVersion()
public void set(java.nio.ByteBuffer value, GoshawkObj... references)
value
- The value to set the object to. The buffer will be cloned and the contents
copied. Therefore any changes you make to this param after calling this
method will be ignored (you will need to call the set method again). The
copying will not alter any position, limit, capacity or marks of the value
ByteBuffer. The value is taken to be from position 0 to the current limit
of the buffer.references
- The new list of objects to which the current object refers. Again, the
array of references is copied.