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 theEntry
interface, to minimize the effort required to implement this interface.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractEntry()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object object)
Returnstrue
ifobject
is an entry which is equal to this entry.int
hashCode()
Returns the hash code for this entry.String
toString()
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:Entry
Returnstrue
ifobject
is 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:Entry
Returns 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.
-
-