@Override
    public boolean equals(final Object other) {
        return other instanceof P &&
                ((P) other).getClass().equals(this.getClass()) &&
                ((P) other).getBiPredicate().equals(this.biPredicate) &&
                ((((P) other).getOriginalValue() == null && this.originalValue == null) || ((P) other).getOriginalValue().equals(this.originalValue));
    }
Gets the current value to be passed to the predicate for testing.
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/P.java