public abstract class AbstractHashable
extends Object
If you want your class to behave correctly when used in
Maps or
Sets, you can do this by:
- Extending this class
- Ensuring that all used field types implement
equals() and hashCode() (e.g. by extending this class)
-
Constructor Summary
Constructors
-
Method Summary
-
Constructor Details
-
AbstractHashable
public AbstractHashable()
-
Method Details
-
-
hashCode
public final int hashCode()
- Overrides:
hashCode in class Object
-