Package com.google.flatbuffers
Class FlexBuffers.TypedVector
java.lang.Object
com.google.flatbuffers.FlexBuffers.Object
com.google.flatbuffers.FlexBuffers.Sized
com.google.flatbuffers.FlexBuffers.Vector
com.google.flatbuffers.FlexBuffers.TypedVector
- Enclosing class:
- FlexBuffers
Object that represents a set of elements with the same type
-
Field Summary
FieldsFields inherited from class com.google.flatbuffers.FlexBuffers.Sized
sizeFields inherited from class com.google.flatbuffers.FlexBuffers.Object
bb, byteWidth, end -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FlexBuffers.TypedVectorempty()get(int pos) Get reference to an object in theVectorintReturn element type for all elements in the vectorbooleanReturns whether the vector is emptyMethods inherited from class com.google.flatbuffers.FlexBuffers.Vector
isEmpty, toStringMethods inherited from class com.google.flatbuffers.FlexBuffers.Sized
sizeMethods inherited from class com.google.flatbuffers.FlexBuffers.Object
toString
-
Field Details
-
EMPTY_VECTOR
-
elemType
private final int elemType
-
-
Constructor Details
-
TypedVector
TypedVector(ReadBuf bb, int end, int byteWidth, int elemType)
-
-
Method Details
-
empty
-
isEmptyVector
public boolean isEmptyVector()Returns whether the vector is empty- Returns:
- true if empty
-
getElemType
public int getElemType()Return element type for all elements in the vector- Returns:
- element type
-
get
Get reference to an object in theVector- Overrides:
getin classFlexBuffers.Vector- Parameters:
pos- position of the object inVector- Returns:
- reference to element
-