public final synchronized int hashCode() { int result = 0; for (Iterator<Triple> iter = iterator(); iter.hasNext();) { result += getBlankNodeBlindHash(iter.next()); } return result; }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof ImmutableGraph)) { return false; } if (hashCode() != obj.hashCode()) { return false; } return GraphMatcher.getValidMapping(this, (ImmutableGraph) obj) != null; } }