Package org.apache.batik.util
Class DoublyIndexedSet
- java.lang.Object
-
- org.apache.batik.util.DoublyIndexedSet
-
public class DoublyIndexedSet extends java.lang.ObjectA set that uses two keys.- Version:
- $Id: DoublyIndexedSet.java 1733416 2016-03-03 07:07:13Z gadams $
-
-
Field Summary
Fields Modifier and Type Field Description protected DoublyIndexedTabletableThe table to store entries.protected static java.lang.ObjectvalueDummy value object for the table.
-
Constructor Summary
Constructors Constructor Description DoublyIndexedSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(java.lang.Object o1, java.lang.Object o2)Adds an entry to the set.voidclear()Clears the set.booleancontains(java.lang.Object o1, java.lang.Object o2)Returns whether the given keys are in the set.voidremove(java.lang.Object o1, java.lang.Object o2)Removes an entry from the set.intsize()Returns the number of entries in the set.
-
-
-
Field Detail
-
table
protected DoublyIndexedTable table
The table to store entries.
-
value
protected static java.lang.Object value
Dummy value object for the table.
-
-
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.
-
-