/** * Indicates whether the provided object is equal to this entry. The provided * object will only be considered equal to this entry if it is an entry with * the same DN and set of attributes. * * @param o The object for which to make the determination. * * @return {@code true} if the provided object is considered equal to this * entry, or {@code false} if not. */ @Override() public boolean equals(final Object o) { if ((o == null) || (! (o instanceof CompactEntry))) { return false; } return toEntry().equals(((CompactEntry) o).toEntry()); }
/** * Indicates whether the provided object is equal to this entry. The provided * object will only be considered equal to this entry if it is an entry with * the same DN and set of attributes. * * @param o The object for which to make the determination. * * @return {@code true} if the provided object is considered equal to this * entry, or {@code false} if not. */ @Override() public boolean equals(final Object o) { if ((o == null) || (! (o instanceof CompactEntry))) { return false; } return toEntry().equals(((CompactEntry) o).toEntry()); }
/** * {@inheritDoc} */ @Override() public boolean equals(final Object o) { if (o == null) { return false; } if (o == this) { return true; } if (! (o instanceof LDIFAddChangeRecord)) { return false; } final LDIFAddChangeRecord r = (LDIFAddChangeRecord) o; final HashSet<Control> c1 = new HashSet<Control>(getControls()); final HashSet<Control> c2 = new HashSet<Control>(r.getControls()); if (! c1.equals(c2)) { return false; } final Entry e1 = new Entry(getDN(), attributes); final Entry e2 = new Entry(r.getDN(), r.attributes); return e1.equals(e2); }
/** * {@inheritDoc} */ @Override() public boolean equals(final Object o) { if (o == null) { return false; } if (o == this) { return true; } if (! (o instanceof LDIFAddChangeRecord)) { return false; } final LDIFAddChangeRecord r = (LDIFAddChangeRecord) o; final HashSet<Control> c1 = new HashSet<Control>(getControls()); final HashSet<Control> c2 = new HashSet<Control>(r.getControls()); if (! c1.equals(c2)) { return false; } final Entry e1 = new Entry(getDN(), attributes); final Entry e2 = new Entry(r.getDN(), r.attributes); return e1.equals(e2); }