Package io.objectbox.flatbuffers
Class FlexBuffers.Vector
java.lang.Object
io.objectbox.flatbuffers.FlexBuffers.Vector
- Direct Known Subclasses:
FlexBuffers.Map,FlexBuffers.TypedVector
- Enclosing class:
- FlexBuffers
Object that represents a set of elements in the buffer
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic FlexBuffers.Vectorempty()Returns an emptyFlexBuffers.Mapget(int index) Get a element in a vector by indexbooleanisEmpty()Checks if the vector is emptyintsize()toString()Appends a text(JSON) representation to a `StringBuilder`
-
Field Details
-
size
protected final int size
-
-
Method Details
-
empty
Returns an emptyFlexBuffers.Map- Returns:
- an empty
FlexBuffers.Map
-
isEmpty
public boolean isEmpty()Checks if the vector is empty- Returns:
- true if vector is empty
-
toString
Appends a text(JSON) representation to a `StringBuilder` -
get
Get a element in a vector by index- Parameters:
index- position of the element- Returns:
Referenceto the element
-
size
public int size() -
toString
-