Class AbstractHashable
- java.lang.Object
-
- ch.systemsx.cisd.common.reflection.AbstractHashable
-
public abstract class AbstractHashable extends java.lang.Object
If you want your class to behave correctly when used inMap
s orSet
s, you can do this by:- Extending this class
- Ensuring that all used field types implement
equals()
andhashCode()
(e.g. by extending this class)
-
-
Constructor Summary
Constructors Constructor Description AbstractHashable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
int
hashCode()
java.lang.String
toString()
-