Class IdentitySet


  • final class IdentitySet
    extends java.lang.Object

    This is a set that uses identity rather than equality semantics.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.HashSet contents  
    • Constructor Summary

      Constructors 
      Constructor Description
      IdentitySet()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) void add​(java.lang.Object object)  
      boolean contains​(java.lang.Object object)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • contents

        private java.util.HashSet contents
    • Constructor Detail

      • IdentitySet

        IdentitySet()
    • Method Detail

      • add

        void add​(java.lang.Object object)
      • contains

        public boolean contains​(java.lang.Object object)