Class AbstractChildNodeEntry
java.lang.Object
org.apache.jackrabbit.oak.spi.state.AbstractChildNodeEntry
- All Implemented Interfaces:
ChildNodeEntry
- Direct Known Subclasses:
MemoryChildNodeEntry
Abstract base class for
ChildNodeEntry implementations.
This base class contains default implementations of the
equals(Object) and hashCode() methods based on
the implemented interface.-
Constructor Details
-
AbstractChildNodeEntry
public AbstractChildNodeEntry()
-
-
Method Details
-
toString
Returns a string representation of this child node entry. -
equals
Checks whether the given object is equal to this one. Two child node entries are considered equal if both their names and referenced node states match. Subclasses may override this method with a more efficient equality check if one is available. -
hashCode
public int hashCode()Returns a hash code that's compatible with how theequals(Object)method is implemented. The current implementation simply returns the hash code of the child node name sinceChildNodeEntryinstances are not intended for use as hash keys.
-