Class AbstractEntry

  • All Implemented Interfaces:
    Entry
    Direct Known Subclasses:
    AbstractMapEntry, Entries.NullEntry

    public abstract class AbstractEntry
    extends Object
    implements Entry
    This class provides a skeletal implementation of the Entry interface, to minimize the effort required to implement this interface.
    • Constructor Detail

      • AbstractEntry

        protected AbstractEntry()
        Default constructor.
    • Method Detail

      • equals

        public boolean equals​(Object object)
        Description copied from interface: Entry
        Returns true if object 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.
        Specified by:
        equals in interface Entry
        Overrides:
        equals in class Object
        Parameters:
        object - The object to be tested for equality with this entry.
        Returns:
        true if object is an entry which is equal to this entry, or false if not.
      • 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.
        Specified by:
        hashCode in interface Entry
        Overrides:
        hashCode in class Object
        Returns:
        The hash code for this entry.
      • toString

        public String toString()
        Description copied from interface: Entry
        Returns a string representation of this entry.
        Specified by:
        toString in interface Entry
        Overrides:
        toString in class Object
        Returns:
        The string representation of this entry.