Package sc.util
Class IdentityWrapper<T>
- java.lang.Object
-
- sc.util.IdentityWrapper<T>
-
public class IdentityWrapper<T> extends java.lang.Object
Utility class to wrap an object for insertion into a HashMap or whatever to hide its equals/hashCode and instead do comparisons on the wrappers system identity.
-
-
Constructor Summary
Constructors Constructor Description IdentityWrapper(T wrapped)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object other)
int
hashCode()
java.lang.String
toString()
-