Class IdentityKeyFunction<E>
- java.lang.Object
-
- com.github.andrewoma.dexx.collection.IdentityKeyFunction<E>
-
- All Implemented Interfaces:
KeyFunction<E,E>
public class IdentityKeyFunction<E> extends java.lang.Object implements KeyFunction<E,E>
IdentityKeyFunction
is aKeyFunction
where the value can be used as a key.This is useful in
DerivedKeyHashMap
instances where the value definesequals()
andhashCode()
methods that only use the key.
-
-
Constructor Summary
Constructors Constructor Description IdentityKeyFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description E
key(E value)
-