T - The type of addressed valuespublic final class JPRACursor1DByteBufferedChecked<T extends JPRAValueType> extends Object implements JPRACursor1DType<T>
ByteBuffer
and performs bounds checking.| Modifier and Type | Method and Description |
|---|---|
com.io7m.mutable.numbers.core.MutableLongType |
getByteOffsetObservable() |
int |
getElementIndex() |
T |
getElementView() |
static <T extends JPRAValueType> |
newCursor(ByteBuffer in_buffer,
JPRAValueByteBufferedConstructorType<T> in_cons)
Construct a new cursor, assuming that the given buffer contains elements of
type
T. |
void |
setElementIndex(int new_index)
Point the cursor at element
index of the array. |
String |
toString() |
public static <T extends JPRAValueType> JPRACursor1DType<T> newCursor(ByteBuffer in_buffer, JPRAValueByteBufferedConstructorType<T> in_cons)
T.T - The precise type of elementsin_buffer - The byte bufferin_cons - An element value constructorpublic int getElementIndex()
getElementIndex in interface JPRACursor1DType<T extends JPRAValueType>public void setElementIndex(int new_index)
throws IndexOutOfBoundsException
JPRACursor1DTypePoint the cursor at element index of the array.
Implementations are permitted to perform bounds checking, and must throw
IndexOutOfBoundsException on out-of-bounds indices.
setElementIndex in interface JPRACursor1DType<T extends JPRAValueType>new_index - The indexIndexOutOfBoundsException - Iff the implementation performs bounds
checking and the index is out of rangepublic T getElementView()
getElementView in interface JPRACursorType<T extends JPRAValueType>public com.io7m.mutable.numbers.core.MutableLongType getByteOffsetObservable()
getByteOffsetObservable in interface JPRACursorByteReadableTypeCopyright © 2017 <code@io7m.com> http://io7m.com