@ Pure public static int getColorFromName ( String colorName , int defaultValue ) { final Integer value = COLOR_MATCHES . get ( Strings . nullToEmpty ( colorName ) . toLowerCase ( ) ) ; if ( value != null ) { return value . intValue ( ) ; } return defaultValue ; }
Replies the color value for the given color name .