@Override public boolean equals(Object obj) { if (this == obj) return true; if (getClass().isInstance(obj)) { WrappedEntity<?, ?> other = (WrappedEntity<?, ?>) obj; return actual().equals(other.actual()) && graphdb.equals(other.graphdb); } return false; }
@SuppressWarnings("unchecked") @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final Triple other = (Triple) obj; if (left == null) { if (other.left != null) { return false; } } else if (!left.equals(other.left)) { return false; } if (mid == null) { if (other.mid != null) { return false; } } else if (!mid.equals(other.mid)) { return false; } if (right == null) { if (other.right != null) { return false; } } else if (!right.equals(other.right)) { return false; } return true; }