Package org.apache.commons.lang3.builder
Class IDKey
- java.lang.Object
-
- org.apache.commons.lang3.builder.IDKey
-
final class IDKey extends Object
Wrap an identity key (System.identityHashCode()) so that an object can only be equal() to itself. This is necessary to disambiguate the occasional duplicate identityHashCodes that can occur.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)checks if instances are equalinthashCode()returns hash code - i.e.
-
-
-
Constructor Detail
-
IDKey
IDKey(Object _value)
Constructor for IDKey- Parameters:
_value- The value
-
-