Package 

Class StackProperties

  • All Implemented Interfaces:

    
    public class StackProperties
    
                        

    The class contains a number of property names and their default values that we use to configure the behavior of the ice4j stack.

    • Constructor Detail

    • Method Detail

      • getString

         static String getString(String propertyName)

        Returns the String value of the specified property (minus all encompassing whitespaces)and null in case no property value was mapped against the specified propertyName, or in case the returned property string had zero length or contained whitespaces only.

        Parameters:
        propertyName - the name of the property that is being queried.
      • getStringArray

         static Array<String> getStringArray(String propertyName, String regex)

        Returns the String array of the specified property, or null in case the returned property string array had zero length.

        Parameters:
        propertyName - the name of the property that is being queried.
        regex - the delimiting regular expression
      • getInt

         static int getInt(String propertyName, int defaultValue)

        Returns the value of a specific property as a signed decimal integer. If a property with the specified property name exists, its string representation is parsed into a signed decimal integer according to the rules of parseInt. If parsing the value as a signed decimal integer fails or there is no value associated with the specified property name, defaultValue is returned.

        Parameters:
        propertyName - the name of the property to get the value of as a signed decimal integer
        defaultValue - the value to be returned if parsing the value of the specified property name as a signed decimal integer fails or there is no value associated with the specified property name in the System properties.
      • getBoolean

         static boolean getBoolean(String propertyName, boolean defaultValue)

        Gets the value of a specific property as a boolean. If the specified property name is associated with a value, the string representation of the value is parsed into a boolean according to the rules of parseBoolean . Otherwise, defaultValue is returned.

        Parameters:
        propertyName - the name of the property to get the value of as a boolean
        defaultValue - the value to be returned if the specified property name is not associated with a value