public class DoublyIndexedSet
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected DoublyIndexedTable |
table
The table to store entries.
|
protected static java.lang.Object |
value
Dummy value object for the table.
|
Constructor and Description |
---|
DoublyIndexedSet() |
Modifier and Type | Method and 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.
|
protected DoublyIndexedTable table
protected static java.lang.Object value
public int size()
public void add(java.lang.Object o1, java.lang.Object o2)
public void remove(java.lang.Object o1, java.lang.Object o2)
public boolean contains(java.lang.Object o1, java.lang.Object o2)
public void clear()
Copyright © 2022 Apache Software Foundation. All Rights Reserved.