Element that makes it suitable for storing
in a Map.
It makes a hash code out by serializing the Element as an XML String and then
computing the hashcode of the resulting String, so this is perhaps not very efficient.
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final Element |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object obj)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public Element | |
| public int |
| hashCode | back to summary |
|---|---|
| private final int hashCode | |
| symbolElement | back to summary |
|---|---|
| private final Element symbolElement | |
| ElementWrapper | back to summary |
|---|---|
| public ElementWrapper(final Element symbolElement) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getSymbolElement | back to summary |
|---|---|
| public Element getSymbolElement() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |