Interface IIdentity<T>

  • All Known Implementing Classes:
    SameIdentity, StandardIdentity

    public interface IIdentity<T>
    Abstract encapsulation of the concept of a type's identity. This is particularly useful when you want to use objects of that type in a map or collection, but you want to define the equals(Object, Object) and hashCode(Object) objects in a way that differs from the type's default. Objects returned from of(Object) will wrap values of the specified type T and use the identity methods from this IIdentity.