Class Leaf


  • @Experimental
    public class Leaf
    extends java.lang.Object
    A data leaf represents a data value in a Tree as a child of a Branch. Each data value has a specific type, e.g. an int or a String.
    • Constructor Detail

    • Method Detail

      • getId

        public long getId()
      • getParentBranchId

        public long getParentBranchId()
      • getMetaId

        public long getMetaId()
      • getValueType

        public short getValueType()
        See PropertyType 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)