public String getString(Enum<?> key, String defaultValue)
    {
        if (key == null)
        {
            return defaultValue;
        }

        return getString(key.name(), defaultValue);
    }
public String getString ( Enum < ? > key , String defaultValue ) { if ( key == null ) { return defaultValue ; } return getString ( key . name ( ) , defaultValue ) ; }
Equivalent to {@link #getString(String, String)
getString}{@code (key.name(), defaultValue)}.
If {@code key} is null, {@code defaultValue} is returned.