public static boolean isNotInstanceOf(final Object obj, final Class... types) {
    boolean condition = true;

    if (types != null) {
      for (int index = 0; index < types.length && condition; index++) {
        condition &= !types[index].isInstance(obj);
      }
    }

    return condition;
  }
Determines whether the specified Object is not a instance of the following Class types. The
Object is considered not an instance of the Class types if the condition holds for all Class
types.
<p>

@param obj the Object who's Class type is in question.
@param types an array of Class types that the Object is being tested as an instance of.
@return a boolean value of true if the Object is not an instance of any of the specified Class
        types.
@see java.lang.Class#isInstance(Object)
geode-common/src/main/java/org/apache/geode/internal/lang/utils/ClassUtils.java