Class IdentityHolder<V>

  • All Implemented Interfaces:
    Holder<V>, Serializable

    public class IdentityHolder<V>
    extends SimpleHolder<V>
    A Holder implementation which additionally provides an equals/hashCode implementation based on the held object's identity.
    Author:
    mf 2017.03.27
    See Also:
    Serialized Form
    • Constructor Detail

      • IdentityHolder

        public IdentityHolder()
        Construct an IdentityHolder holding nothing.
      • IdentityHolder

        public IdentityHolder​(V v)
        Construct an IdentityHolder holding the specified object.
        Parameters:
        v - the object to hold