org.apache.batik.util

Class DoublyIndexedSet

public class DoublyIndexedSet extends Object

A set that uses two keys.
Field Summary
protected DoublyIndexedTabletable
The table to store entries.
protected static Objectvalue
Dummy value object for the table.
Method Summary
voidadd(Object o1, Object o2)
Adds an entry to the set.
voidclear()
Clears the set.
booleancontains(Object o1, Object o2)
Returns whether the given keys are in the set.
voidremove(Object o1, 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 Object value
Dummy value object for the table.

Method Detail

add

public void add(Object o1, Object o2)
Adds an entry to the set.

clear

public void clear()
Clears the set.

contains

public boolean contains(Object o1, Object o2)
Returns whether the given keys are in the set.

remove

public void remove(Object o1, Object o2)
Removes an entry from the set.

size

public int size()
Returns the number of entries in the set.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.