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.Double
asDouble()
java.lang.Long
asInt()
java.lang.String
asString()
java.lang.String[]
asStringArray()
double
getDouble()
long
getId()
long
getInt()
long
getMetaId()
long
getParentBranchId()
java.lang.String
getString()
java.lang.String[]
getStringArray()
short
getValueType()
SeePropertyType
for possible types (not all are used here).boolean
isDouble()
boolean
isInt()
boolean
isString()
boolean
isStringArray()
void
setDouble(double value)
void
setInt(long value)
void
setString(java.lang.String value)
void
setStringArray(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()
SeePropertyType
for 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)
-
-