@Override
      public Boolean execute(Object object1, Object object2, int comparator) {
        if (comparator == TOK_EQ) {
          return object1.equals(object2);
        } else {
          return !object1.equals(object2);
        }
      }
Enum to execute comparisons based on types.
geode-core/src/main/java/org/apache/geode/cache/query/internal/types/TypeUtils.java