O
- is the generic type of the object to get hash keys
for.public interface HashKeyProvider<O>
provides a hash key
for an object of type <O>. Modifier and Type | Method and Description |
---|---|
Object |
getHashKey(O object) |
Object getHashKey(O object)
object
- is the object to get the hash key for.object
. The equals
and
hashCode
methods of the returned object have to satisfy that if two objects
o1
and o2
are considered equal then getHashKey(o1).equals(getHashKey(o2))
and
getHashKey(o1).hashCode() == getHashKey(o2).hashCode()
.Copyright © 2001–2016 mmm-Team. All rights reserved.