Package io.objectbox.tree
Class Leaf
- java.lang.Object
-
- io.objectbox.tree.Leaf
-
@Experimental public class Leaf extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.DoubleasDouble()java.lang.LongasInt()java.lang.StringasString()java.lang.String[]asStringArray()doublegetDouble()longgetId()longgetInt()longgetMetaId()longgetParentBranchId()java.lang.StringgetString()java.lang.String[]getStringArray()shortgetValueType()SeePropertyTypefor possible types (not all are used here).booleanisDouble()booleanisInt()booleanisString()booleanisStringArray()voidsetDouble(double value)voidsetInt(long value)voidsetString(java.lang.String value)voidsetStringArray(java.lang.String[] value)
-
-
-
Constructor Detail
-
Leaf
public Leaf(LeafNode node)
-
-
Method Detail
-
getId
public long getId()
-
getParentBranchId
public long getParentBranchId()
-
getMetaId
public long getMetaId()
-
getValueType
public short getValueType()
SeePropertyTypefor possible types (not all are used here).
-
isInt
public boolean isInt()
-
isDouble
public boolean isDouble()
-
isString
public boolean isString()
-
isStringArray
public boolean isStringArray()
-
getInt
public long getInt()
-
getDouble
public double getDouble()
-
getString
@Nullable public java.lang.String getString()
-
getStringArray
@Nullable public java.lang.String[] getStringArray()
-
asInt
@Nullable public java.lang.Long asInt()
-
asDouble
@Nullable public java.lang.Double asDouble()
-
asString
@Nullable public java.lang.String asString()
-
asStringArray
@Nullable public java.lang.String[] asStringArray()
-
setInt
public void setInt(long value)
-
setDouble
public void setDouble(double value)
-
setString
public void setString(@Nullable java.lang.String value)
-
setStringArray
public void setStringArray(@Nullable java.lang.String[] value)
-
-