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.Vector
empty()
Returns an emptyFlexBuffers.Map
get
(int index) Get a element in a vector by indexboolean
isEmpty()
Checks if the vector is emptyint
size()
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:
Reference
to the element
-
size
public int size() -
toString
-