Class IntegerNode

  • All Implemented Interfaces:
    java.lang.Cloneable

    public class IntegerNode
    extends LeafNode<java.lang.Integer>
    The IntegerNode class represents an integer in a configuration tree.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean doSetValue​(java.lang.String value)  
      java.lang.String getValue()
      Subclasses must implement this, in compliance with the rules given in the return tag.
      java.lang.String toString()
      Subclasses must implement this, in compliance with the rules given in the return tag.
      java.lang.Integer value()  
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • IntegerNode

        public IntegerNode()
      • IntegerNode

        public IntegerNode​(int value)
    • Method Detail

      • value

        public java.lang.Integer value()
        Overrides:
        value in class LeafNode<java.lang.Integer>
      • getValue

        public java.lang.String getValue()
        Description copied from class: LeafNode
        Subclasses must implement this, in compliance with the rules given in the return tag.
        Specified by:
        getValue in class LeafNode<java.lang.Integer>
        Returns:
        the String representation of the node value, or the 'null' object if the node value is null.
      • toString

        public java.lang.String toString()
        Description copied from class: LeafNode
        Subclasses must implement this, in compliance with the rules given in the return tag.
        Specified by:
        toString in class LeafNode<java.lang.Integer>
        Returns:
        the String representation of the node value, or the string "(null)" if the value is null.
      • doSetValue

        protected boolean doSetValue​(@NonNull
                                     java.lang.String value)
        Specified by:
        doSetValue in class LeafNode<java.lang.Integer>