public static boolean isSpecialColorName ( final String colorName ) { for ( final String name : SPECIAL_COLOR_NAMES ) { if ( name . equalsIgnoreCase ( colorName ) ) { return true ; } } return false ; }
The test is case - sensitive . It assumes the value was already converted to lower - case .