Class BinaryIdentitySet<T>


  • public class BinaryIdentitySet<T>
    extends Object
    An optimized kind of IdentityHashSet that only holds two objects. (Allows for faster comparison.)
    Author:
    Eric Bodden
    • Field Detail

      • o1

        protected final T o1
      • o2

        protected final T o2
      • hashCode

        protected final int hashCode
    • Constructor Detail

      • BinaryIdentitySet

        public BinaryIdentitySet​(T o1,
                                 T o2)