Class MetaData

    • Constructor Detail

      • MetaData

        public MetaData()
    • Method Detail

      • getInteger

        public int getInteger​(String key,
                              int defValue)
        Returns the integer value associated with the key or the default value if not present or not a number or string representing an integer.
        Parameters:
        key - the key to retrieve
        defValue - the default value
        Returns:
        the retrieved value or the default value
      • getDouble

        public double getDouble​(String key,
                                double defValue)
        Returns the double value associated with the key or the default value if not present or not a number or string representing a double.
        Parameters:
        key - the key to retrieve
        defValue - the default value
        Returns:
        the retrieved value or the default value
      • getBoolean

        public boolean getBoolean​(String key,
                                  boolean defValue)
        Returns the boolean value associated with the key or the default value if not present or not a boolean or string representing a boolean.
        Parameters:
        key - the key to retrieve
        defValue - the default value
        Returns:
        the retrieved value or the default value
      • getString

        public String getString​(String key,
                                String defValue)
        Returns the string value associated with the key or the default value if not present or not a string.
        Parameters:
        key - the key to retrieve
        defValue - the default value
        Returns:
        the retrieved value or the default value