@Override
    public boolean equals(final Object o) {
        if (this == o) return true;
        if (!(o instanceof LoopsStep)) return false;
        if (!super.equals(o)) return false;

        final LoopsStep<?> loopsStep = (LoopsStep<?>) o;

        return loopName != null ? loopName.equals(loopsStep.loopName) : loopsStep.loopName == null;
    }
@author Daniel Kuppitz (http://gremlin.guru)
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/LoopsStep.java