public interface Element extends Representable, UniqueByteRepresentable
Structure.
Implementations are required to implement equals() and hashCode()
such that x.equals(y) implies x.hashCode() == y.hashCode().
The hashCode() implementation does not have to be collision resistant.
Generally, two elements are only considered equal if they belong to equal structures.
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
Structure |
getStructure()
Returns the
Structure that this Element belongs to. |
int |
hashCode() |
getRepresentationgetUniqueByteRepresentation, updateAccumulatorStructure getStructure()
Structure that this Element belongs to.boolean equals(java.lang.Object obj)
equals in class java.lang.Objectint hashCode()
hashCode in class java.lang.Object