|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.SIRAPRISE.typeimplementations.ValueBuffer
be.SIRAPRISE.typeimplementations.ScalarValueBuffer
public class ScalarValueBuffer
A ScalarValueBuffer is the class that can be used as a container for any sort of scalar value. It is a wrapper class around a java ByteBuffer.
Constructor Summary | |
---|---|
ScalarValueBuffer(java.nio.ByteBuffer byteBuffer)
Creates the value buffer and makes it store the scalar value contained in the ByteBuffer given. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Tells whether or not this ScalarValueBuffer is equal to another object. |
java.nio.ByteBuffer |
getByteBuffer()
Gets a read-only bytebuffer holding the encoded value |
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ScalarValueBuffer(java.nio.ByteBuffer byteBuffer)
byteBuffer
- The ByteBuffer containing the (internal encoding of the) value.Method Detail |
---|
public final boolean equals(java.lang.Object obj)
Their ByteBuffers are of equal length, and
All bytes in the two ByteBuffers' corresponding positions, are equal.
equals
in class java.lang.Object
obj
- The object to which this buffer is to be compared
public final java.nio.ByteBuffer getByteBuffer()
public final int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |