code: public static boolean isCase(Class caseValue, Object switchValue) {
          if (switchValue instanceof Class) {
              Class val = (Class) switchValue;
              return caseValue.isAssignableFrom(val);
          }
          return caseValue.isInstance(switchValue);
      }
docs: Special 'Case' implementation for Class, which allows testing
  for a certain class in a switch statement.
  For example:
  <pre>switch( obj ) {
  case List :
  // obj is a list
  break;
  case Set :
  // etc
  }</pre>
  
  @param caseValue   the case value
  @param switchValue the switch value
  @return true if the switchValue is deemed to be assignable from the given class
  @since 1.0