public class ScalarValueBuffer extends ValueBuffer
Constructor and Description |
---|
ScalarValueBuffer(java.nio.ByteBuffer byteBuffer)
Creates the value buffer and makes it store the scalar value contained in the ByteBuffer given.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Tells whether or not this ScalarValueBuffer is equal to another object.
|
boolean |
equalsScalarValueBuffer(ValueBuffer obj)
Tells whether or not this ScalarValueBuffer is equal to another ScalarValueBuffer.
|
java.nio.ByteBuffer |
getByteBuffer()
Gets a read-only bytebuffer holding an encoding of the value
|
int |
hashCode() |
java.lang.String |
toString() |
intern
public ScalarValueBuffer(java.nio.ByteBuffer byteBuffer)
byteBuffer
- The ByteBuffer containing the (internal encoding of the) value.public final boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- The object to which this buffer is to be comparedpublic final boolean equalsScalarValueBuffer(ValueBuffer obj)
obj
- The ScalarValueBuffer to which this buffer is to be comparedpublic final java.nio.ByteBuffer getByteBuffer()
getByteBuffer
in class ValueBuffer
public final int hashCode()
hashCode
in class java.lang.Object
public final java.lang.String toString()
toString
in class java.lang.Object