public final class IntSingleBufferImmutableArrayImpl extends Object implements IntImmutableArray, LongImmutableArray, FloatImmutableArray
IntImmutableArray.BuilderLongImmutableArray.BuilderFloatImmutableArray.Builder| Constructor and Description |
|---|
IntSingleBufferImmutableArrayImpl(IntBuffer buffer,
int length) |
| Modifier and Type | Method and Description |
|---|---|
float |
getAsFloat(long index)
Returns the value located at the specified index in the array.
|
int |
getAsInt(long index)
Returns the value located at the specified index in the array.
|
long |
getAsLong(long index)
Returns the value located at the specified index in the array.
|
long |
length()
Returns the length of the array (the number of integers that can safely
be retrieved using the
IntImmutableArray.getAsInt(long) method). |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuilderbuilderbuilderpublic IntSingleBufferImmutableArrayImpl(IntBuffer buffer, int length)
public float getAsFloat(long index)
FloatImmutableArraygetAsFloat in interface FloatImmutableArrayindex - the indexpublic long getAsLong(long index)
LongImmutableArraygetAsLong in interface LongImmutableArrayindex - the indexpublic int getAsInt(long index)
IntImmutableArraygetAsInt in interface IntImmutableArrayindex - the indexpublic long length()
IntImmutableArrayIntImmutableArray.getAsInt(long) method).length in interface FloatImmutableArraylength in interface IntImmutableArraylength in interface LongImmutableArrayCopyright © 2016. All rights reserved.