T - A phantom type parameterpublic final class PVectorByteBufferedM3I<T> extends ByteBuffered implements PVectorByteBuffered3IType<T>
A three-element vector type with int 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 |
copyFrom2I(VectorReadable2IType in_v)
Set the current vector to the contents of the input vector.
|
void |
copyFrom3I(VectorReadable3IType in_v)
Set the current vector to the contents of the input vector.
|
void |
copyFromTyped2I(PVectorReadable2IType<T> in_v)
Set the current vector to the contents of the input vector.
|
void |
copyFromTyped3I(PVectorReadable3IType<T> in_v)
Set the current vector to the contents of the input vector.
|
boolean |
equals(Object obj) |
int |
getXI() |
int |
getYI() |
int |
getZI() |
int |
hashCode() |
static <T> PVectorByteBuffered3IType<T> |
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 <T> PVectorByteBuffered3IType<T> |
newVectorFromByteBufferAndBase(ByteBuffer b,
AtomicLong base,
int offset)
Return a new vector that is backed by the given byte buffer
b |
void |
set2I(int x,
int y)
Set the current
x and y values of the current vector. |
void |
set3I(int x,
int y,
int z)
Set the current
x, y and z values of the current
vector. |
void |
setXI(int x)
Set the current
x value of the current vector. |
void |
setYI(int y)
Set the current
y value of the current vector. |
void |
setZI(int 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 <T> PVectorByteBuffered3IType<T> 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.
T - A phantom type parameterb - The byte bufferbyte_offset - A byte offsetpublic static <T> PVectorByteBuffered3IType<T> 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.
T - A phantom type parameterb - The byte bufferbase - The base addressoffset - A constant offsetpublic int getZI()
getZI in interface VectorReadable3ITypepublic void setZI(int z)
VectorWritable3ITypez value of the current vector.setZI in interface VectorWritable3ITypez - The new z value.public int getXI()
getXI in interface VectorReadable2ITypepublic void setXI(int x)
VectorWritable2ITypex value of the current vector.setXI in interface VectorWritable2ITypex - The new x value.public int getYI()
getYI in interface VectorReadable2ITypepublic void setYI(int y)
VectorWritable2ITypey value of the current vector.setYI in interface VectorWritable2ITypey - The new y value.public void copyFrom3I(VectorReadable3IType in_v)
VectorWritable3ITypecopyFrom3I in interface VectorWritable3ITypein_v - The input vectorpublic void set3I(int x,
int y,
int z)
VectorWritable3ITypex, y and z values of the current
vector.set3I in interface VectorWritable3ITypex - The new x value.y - The new y value.z - The new z value.public void copyFrom2I(VectorReadable2IType in_v)
VectorWritable2ITypecopyFrom2I in interface VectorWritable2ITypein_v - The input vectorpublic void set2I(int x,
int y)
VectorWritable2ITypex and y values of the current vector.set2I in interface VectorWritable2ITypex - The new x value.y - The new y value.public void copyFromTyped3I(PVectorReadable3IType<T> in_v)
PVectorWritable3ITypecopyFromTyped3I in interface PVectorWritable3IType<T>in_v - The input vectorpublic void copyFromTyped2I(PVectorReadable2IType<T> in_v)
PVectorWritable2ITypecopyFromTyped2I in interface PVectorWritable2IType<T>in_v - The input vectorCopyright © 2015 <code@io7m.com> http://io7m.com