code: public static boolean isCase(Object caseValue, Object switchValue) {
          if (caseValue.getClass().isArray()) {
              return isCase(DefaultTypeTransformation.asCollection(caseValue), switchValue);
          }
          return caseValue.equals(switchValue);
      }
docs: Method for overloading the behavior of the 'case' method in switch statements.
  The default implementation handles arrays types but otherwise simply delegates
  to Object#equals, but this may be overridden for other types. In this example:
  <pre> switch( a ) {
  case b: //some code
  }</pre>
  "some code" is called when <code>b.isCase( a )</code> returns
  <code>true</code>.
  
  @param caseValue   the case value
  @param switchValue the switch value
  @return true if the switchValue is deemed to be equal to the caseValue
  @since 1.0