code: public static boolean isCase(CharSequence caseValue, Object switchValue) {
          String s = caseValue.toString();
          if (switchValue == null) {
              return s == null;
          }
          return s.equals(switchValue.toString());
      }
docs: 'Case' implementation for a CharSequence, which uses equals between the
  toString() of the caseValue and the switchValue. This allows CharSequence
  values to be used in switch statements. For example:
  <pre>
  switch( str ) {
  case 'one' :
  // etc...
  }
  </pre>
  Note that this returns <code>true</code> for the case where both the
  'switch' and 'case' operand is <code>null</code>.
  
  @param caseValue   the case value
  @param switchValue the switch value
  @return true if the switchValue's toString() equals the caseValue
  @since 1.8.2