@Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof Relationship)) return false; Relationship that = (Relationship) o; if (sourceUserId != that.getSourceUserId()) return false; if (targetUserId != that.getTargetUserId()) return false; if (!sourceUserScreenName.equals(that.getSourceUserScreenName())) return false; if (!targetUserScreenName.equals(that.getTargetUserScreenName())) return false; return true; }