Class DoublyIndexedSet


  • public class DoublyIndexedSet
    extends java.lang.Object
    A set that uses two keys.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected DoublyIndexedTable table
      The table to store entries.
      protected static java.lang.Object value
      Dummy value object for the table.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(java.lang.Object o1, java.lang.Object o2)
      Adds an entry to the set.
      void clear()
      Clears the set.
      boolean contains​(java.lang.Object o1, java.lang.Object o2)
      Returns whether the given keys are in the set.
      void remove​(java.lang.Object o1, java.lang.Object o2)
      Removes an entry from the set.
      int size()
      Returns the number of entries in the set.
      • Methods inherited from class java.lang.Object

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

      • value

        protected static java.lang.Object value
        Dummy value object for the table.
    • Constructor Detail

      • DoublyIndexedSet

        public DoublyIndexedSet()
    • Method Detail

      • size

        public int size()
        Returns the number of entries in the set.
      • add

        public void add​(java.lang.Object o1,
                        java.lang.Object o2)
        Adds an entry to the set.
      • remove

        public void remove​(java.lang.Object o1,
                           java.lang.Object o2)
        Removes an entry from the set.
      • contains

        public boolean contains​(java.lang.Object o1,
                                java.lang.Object o2)
        Returns whether the given keys are in the set.
      • clear

        public void clear()
        Clears the set.