public final class VectorByteBufferedM3L extends ByteBuffered implements VectorByteBuffered3LType
A three-element vector type with long elements, packed into a
ByteBuffer.
Values of this type cannot be accessed safely from multiple threads without explicit synchronization.
| Modifier and Type | Method and Description |
|---|---|
void |
copyFrom2L(VectorReadable2LType in_v)
Set the current vector to the contents of the input vector.
|
void |
copyFrom3L(VectorReadable3LType in_v)
Set the current vector to the contents of the input vector.
|
boolean |
equals(Object obj) |
long |
getXL() |
long |
getYL() |
long |
getZL() |
int |
hashCode() |
static VectorByteBuffered3LType |
newVectorFromByteBuffer(ByteBuffer b,
long byte_offset)
Return a new vector that is backed by whatever data is at byte offset
byte_offset in the byte buffer . |
static VectorByteBuffered3LType |
newVectorFromByteBufferAndBase(ByteBuffer b,
AtomicLong base,
int offset)
Return a new vector that is backed by the given byte buffer
b |
void |
set2L(long x,
long y)
Set the current
x and y values of the current vector. |
void |
set3L(long x,
long y,
long z)
Set the current
x, y and z values of the current
vector. |
void |
setXL(long x)
Set the current
x value of the current vector. |
void |
setYL(long y)
Set the current
y value of the current vector. |
void |
setZL(long z)
Set the current
z value of the current vector. |
String |
toString() |
getByteOffset, getIndex, getOffset, setBase, setByteOffsetclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetByteOffset, setByteOffsetpublic static VectorByteBuffered3LType newVectorFromByteBuffer(ByteBuffer b, long byte_offset)
Return a new vector that is backed by whatever data is at byte offset
byte_offset in the byte buffer .
No initialization of the data is performed.
b - The byte bufferbyte_offset - A byte offsetpublic static VectorByteBuffered3LType newVectorFromByteBufferAndBase(ByteBuffer b, AtomicLong base, int offset)
Return a new vector that is backed by the given byte buffer b
The data for the instance will be taken from the data at the current
value of base.get() + offset, each time a field is requested or
set.
No initialization of the data is performed.
b - The byte bufferbase - The base addressoffset - A constant offsetpublic long getZL()
getZL in interface VectorReadable3LTypepublic void setZL(long z)
VectorWritable3LTypez value of the current vector.setZL in interface VectorWritable3LTypez - The new z value.public long getXL()
getXL in interface VectorReadable2LTypepublic void setXL(long x)
VectorWritable2LTypex value of the current vector.setXL in interface VectorWritable2LTypex - The new x value.public long getYL()
getYL in interface VectorReadable2LTypepublic void setYL(long y)
VectorWritable2LTypey value of the current vector.setYL in interface VectorWritable2LTypey - The new y value.public void copyFrom3L(VectorReadable3LType in_v)
VectorWritable3LTypecopyFrom3L in interface VectorWritable3LTypein_v - The input vectorpublic void set3L(long x,
long y,
long z)
VectorWritable3LTypex, y and z values of the current
vector.set3L in interface VectorWritable3LTypex - The new x value.y - The new y value.z - The new z value.public void copyFrom2L(VectorReadable2LType in_v)
VectorWritable2LTypecopyFrom2L in interface VectorWritable2LTypein_v - The input vectorpublic void set2L(long x,
long y)
VectorWritable2LTypex and y values of the current vector.set2L in interface VectorWritable2LTypex - The new x value.y - The new y value.Copyright © 2016 <code@io7m.com> http://io7m.com