Package io.objectbox.flatbuffers
Class IntVector
- java.lang.Object
-
- io.objectbox.flatbuffers.BaseVector
-
- io.objectbox.flatbuffers.IntVector
-
public final class IntVector extends BaseVector
Helper type for accessing vector of signed or unsigned 32-bit values.
-
-
Field Summary
-
Fields inherited from class io.objectbox.flatbuffers.BaseVector
bb
-
-
Constructor Summary
Constructors Constructor Description IntVector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntVector
__assign(int _vector, java.nio.ByteBuffer _bb)
Assigns vector access object to vector data.int
get(int j)
Reads the integer at the given index.long
getAsUnsigned(int j)
Reads the integer at the given index, zero-extends it to type long, and returns the result, which is therefore in the range 0 through 4294967295.
-
-
-
Method Detail
-
__assign
public IntVector __assign(int _vector, java.nio.ByteBuffer _bb)
Assigns vector access object to vector data.- Parameters:
_vector
- Start data of a vector._bb
- Table's ByteBuffer.- Returns:
- Returns current vector access object assigned to vector data whose offset is stored at `vector`.
-
get
public int get(int j)
Reads the integer at the given index.- Parameters:
j
- The index from which the integer will be read.- Returns:
- the 32-bit value at the given index.
-
getAsUnsigned
public long getAsUnsigned(int j)
Reads the integer at the given index, zero-extends it to type long, and returns the result, which is therefore in the range 0 through 4294967295.- Parameters:
j
- The index from which the integer will be read.- Returns:
- the unsigned 32-bit at the given index.
-
-