public char getChar ( String name , char defaultValue ) { String value = getString ( name , null ) ; if ( ! StringUtils . isNullOrEmpty ( value ) ) { return value . trim ( ) . charAt ( 0 ) ; } return defaultValue ; }
Returns the char value for the specified name . If the name does not exist or the value for the name can not be interpreted as a char the defaultValue is returned .