Package nonapi.io.github.classgraph.json
Class ReferenceEqualityKey<K>
java.lang.Object
nonapi.io.github.classgraph.json.ReferenceEqualityKey<K>
- Type Parameters:
K
- the key type
An object for wrapping a HashMap key so that the hashmap performs reference equality on the keys, not equals()
equality.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
wrappedKey
The wrapped key.
-
-
Constructor Details
-
ReferenceEqualityKey
Constructor.- Parameters:
wrappedKey
- the wrapped key
-
-
Method Details
-
get
Get the wrapped key.- Returns:
- the wrapped key.
-
hashCode
public int hashCode()Hash code. -
equals
Equals. -
toString
To string.
-