public abstract class AbstractChildNode extends Object implements ChildNode
ChildNode implementations.
This base class contains default implementations of the
equals(Object) and hashCode() methods based on
the implemented interface.| Constructor and Description |
|---|
AbstractChildNode() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object that)
Checks whether the given object is equal to this one.
|
int |
hashCode()
Returns a hash code that's compatible with how the
equals(Object) method is implemented. |
public boolean equals(Object that)
public int hashCode()
equals(Object) method is implemented. The current
implementation simply returns the hash code of the child node name
since ChildNode instances are not intended for use as
hash keys.Copyright © 2012-2013 The Apache Software Foundation. All Rights Reserved.