|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.inxar.syntacs.util.HashBitSetIntRelation
Concrete implementation of IntRelation
which uses a
hash table such that each entry in the table contains a
BitSetIntSet
. IntSet
, if needed.
Constructor Summary | |
HashBitSetIntRelation()
Constructs the HashBitSetIntRelation with a default
initial capacity. |
|
HashBitSetIntRelation(int capacity)
Constructs the HashBitSetIntRelation with the given
initial capacity. |
Method Summary | |
IntSet |
get(int key)
Returns the set under the given key. |
boolean |
isEmpty()
Returns true if the set of keys is the empty set. |
IntSet |
keys()
Returns the set of keys. |
void |
put(int key,
int value)
Puts the given value in the set under the given key. |
Reiterator |
reiterator()
Returns a Reiterator view. |
void |
set(int key,
IntSet values)
Assigns the given set to the given key. |
String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public HashBitSetIntRelation(int capacity)
HashBitSetIntRelation
with the given
initial capacity.public HashBitSetIntRelation()
HashBitSetIntRelation
with a default
initial capacity.Method Detail |
public IntSet get(int key)
IntRelation
get
in interface IntRelation
public void set(int key, IntSet values)
IntRelation
set
in interface IntRelation
public void put(int key, int value)
IntRelation
put
in interface IntRelation
public IntSet keys()
IntRelation
keys
in interface IntRelation
public Reiterator reiterator()
IntRelation
reiterator
in interface IntRelation
public boolean isEmpty()
IntRelation
true
if the set of keys is the empty set.isEmpty
in interface IntRelation
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |