Class IdentityWrapper<T>

java.lang.Object
jdk.jpackage.internal.util.IdentityWrapper<T>
Type Parameters:
T - the type of the wrapped value

public final class IdentityWrapper<T> extends Object
Object wrapper implementing Object.equals(Object) such that it returns true only when the argument is another instance of this class wrapping the same object.

The class guarantees that Object.equals(Object) and Object.hashCode() methods of the wrapped object will never be called inside of the class methods.

  • Constructor Details

    • IdentityWrapper

      public IdentityWrapper(T value)
  • Method Details