@Override
      public Boolean execute(Object object1, Object object2, int comparator)
          throws ClassCastException {
        return applyComparator(((Comparable) object1).compareTo(object2), comparator);
      }
Enum to execute comparisons based on types.
geode-core/src/main/java/org/apache/geode/cache/query/internal/types/TypeUtils.java