Package org.forgerock.opendj.ldap
Class AbstractEntry
- java.lang.Object
-
- org.forgerock.opendj.ldap.AbstractEntry
-
- All Implemented Interfaces:
Entry
- Direct Known Subclasses:
AbstractMapEntry,CompactEntry,Entries.NullEntry
public abstract class AbstractEntry extends Object implements Entry
This class provides a skeletal implementation of theEntryinterface, to minimize the effort required to implement this interface.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractEntry()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object object)Returnstrueifobjectis an entry which is equal to this entry.inthashCode()Returns the hash code for this entry.StringtoString()Returns a string representation of this entry.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.forgerock.opendj.ldap.Entry
addAttribute, addAttribute, addAttribute, addAttributeIfAbsent, clearAttributes, containsAnyAttributes, containsAnyAttributes, containsAttribute, containsAttribute, containsAttribute, getAllAttributes, getAllAttributes, getAllAttributes, getAttribute, getAttribute, getAttributeCount, getName, mergeAttribute, parseAttribute, parseAttribute, removeAttribute, removeAttribute, removeAttribute, replaceAttribute, replaceAttribute, setName, setName
-
-
-
-
Method Detail
-
equals
public boolean equals(Object object)
Description copied from interface:EntryReturnstrueifobjectis an entry which is equal to this entry. Two entries are considered equal if their distinguished names are equal, they both have the same number of attributes, and every attribute contained in the first entry is also contained in the second entry.
-
hashCode
public int hashCode()
Description copied from interface:EntryReturns the hash code for this entry. It will be calculated as the sum of the hash codes of the distinguished name and all of the attributes.
-
-