Package com.google.flatbuffers
Class FlexBuffers.TypedVector
- java.lang.Object
-
- com.google.flatbuffers.FlexBuffers.Vector
-
- com.google.flatbuffers.FlexBuffers.TypedVector
-
- Enclosing class:
- FlexBuffers
public static class FlexBuffers.TypedVector extends FlexBuffers.Vector
Object that represents a set of elements with the same type
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FlexBuffers.TypedVectorempty()FlexBuffers.Referenceget(int pos)Get reference to an object in theVectorintgetElemType()Return element type for all elements in the vectorbooleanisEmptyVector()Returns whether the vector is empty-
Methods inherited from class com.google.flatbuffers.FlexBuffers.Vector
isEmpty, toString
-
-
-
-
Method Detail
-
empty
public static FlexBuffers.TypedVector 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
public FlexBuffers.Reference get(int pos)
Get reference to an object in theVector- Overrides:
getin classFlexBuffers.Vector- Parameters:
pos- position of the object inVector- Returns:
- reference to element
-
-