Class ConfEntry


  • public class ConfEntry
    extends Object
    • Method Detail

      • key

        public String key()
        Gets the object key.
        Returns:
        the string key.
      • value

        public Object value()
        Gets the object value.
        Returns:
        the object value.
      • asString

        public String asString()
        Gets value as a string.
      • asLong

        public long asLong()
        Gets valuer as a long.
      • asInt

        public int asInt()
        Gets value as an integer.
        Returns:
        an integer value.
      • asBoolean

        public boolean asBoolean()
        Gets value as an boolean.
        Returns:
        the value as as boolean.
      • asDouble

        public double asDouble()
        Gets value as a double.
        Returns:
        the value as a double.
      • asStringList

        public List<String> asStringList()
        Gets value as a list.
        Returns:
        a string list value.
      • asSubConf

        public Conf asSubConf()
        Gets value as a Conf.
        Returns:
        a new Conf instance.
      • asSubConfList

        public List<Conf> asSubConfList()
        Gets value as a list of Conf.
        Returns:
        a new list of Conf instances.
      • getClasses

        public <T> Collection<T> getClasses​(Class<T> type)
        Gets value as a list of instances of type ConfEntry.
        Type Parameters:
        T - the expected type.
        Parameters:
        type - the class of the .
        Returns:
        a new Collection of ConfEntry.
      • getClass

        public <T> T getClass​(Class<T> type)
        Gets value as an instances of type ConfEntry.
        Type Parameters:
        T - the expected type.
        Parameters:
        type - the class of the .
        Returns:
        a new Collection of ConfEntry.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object