Package 

Class SystemProperties

    • Method Summary

      Modifier and Type Method Description
      static String get(String key) Get the value for the given key.
      static String get(String key, String def) Get the value for the given key.
      static boolean getBoolean(String key, boolean def) Get the value for the given key, returned as a boolean.
      static int getInt(String key, int def) Get the value for the given key, and return as an integer.
      static long getLong(String key, long def) Get the value for the given key, and return as a long.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getBoolean

         static boolean getBoolean(String key, boolean def)

        Get the value for the given key, returned as a boolean. Values 'n', 'no', '0', 'false' or'off' are considered false. Values 'y', 'yes', '1', 'true' or 'on' are considered true. (casesensitive). If the key does not exist, or has any other value, then the default result isreturned.

        Parameters:
        key - the key to lookup
        def - a default value to return
      • getInt

         static int getInt(String key, int def)

        Get the value for the given key, and return as an integer.

        Parameters:
        key - the key to lookup
        def - a default value to return
      • getLong

         static long getLong(String key, long def)

        Get the value for the given key, and return as a long.

        Parameters:
        key - the key to lookup
        def - a default value to return