public int priority() {
            return ordinal();
        }
Lookup by instanceof semantics (not class equality). Current implementation will return first enum value
that matches the object's type.
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/util/GremlinValueComparator.java