@Override
        public int hashCode() {
            return Objects.hash(pattern.pattern(), negate);
        }
Allows for a compiled version of the regex pattern.
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/Text.java