code: @SuppressWarnings("rawtypes")
      public static boolean isMatchBetweenPrimativeAndWrapperTypes(Class leftType, Class rightType) {
          if (leftType == null) {
              throw new NullPointerException("Left type is null!");
          }
          if (rightType == null) {
              throw new NullPointerException("Right type is null!");
          }
          Class<?> r = PRIMITIVE_TYPE_COMPATIBLE_CLASSES.get(leftType);
          return r == rightType;
      }
docs: Detect if left and right types are matching types. In particular,
  test if one is a primitive type and the other is the corresponding
  Java wrapper type. Primitive and wrapper classes may be passed to
  either arguments.
  
  @param leftType
  @param rightType
  @return true if one of the classes is a native type and the other the object representation
  of the same native type