Package tools.set
Class CustomMap.DefaultMapKey<K>
java.lang.Object
tools.set.CustomMap.DefaultMapKey<K>
- All Implemented Interfaces:
MapKeyProxy<K>
A default implementation of the Map with customized hash() and equals() functions.
- Author:
- Pavel Ponec
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
originalKey
-
-
Constructor Details
-
DefaultMapKey
-
-
Method Details
-
hashCode
public int hashCode()Description copied from interface:MapKeyProxyCalculate hash code- Specified by:
hashCodein interfaceMapKeyProxy<K>- Overrides:
hashCodein classObject
-
equals
Description copied from interface:MapKeyProxyMake equals- Specified by:
equalsin interfaceMapKeyProxy<K>- Overrides:
equalsin classObject
-
getOriginal
Get original key- Specified by:
getOriginalin interfaceMapKeyProxy<K>
-
toString
-