|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.inxar.syntacs.util.TreeListIntRelation
Concrete implementation of IntRelation
which uses
as a binary tree such that ListIntSet
instances are
implicitly created at each tree node.
Constructor Summary | |
TreeListIntRelation()
Constructs the TreeListIntRelation . |
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 val)
Puts the given value in the set under the given key. |
Reiterator |
reiterator()
Returns a Reiterator view. |
void |
set(int key,
IntSet set)
Assigns the given set to the given key. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TreeListIntRelation()
TreeListIntRelation
.Method Detail |
public IntSet keys()
IntRelation
keys
in interface IntRelation
public boolean isEmpty()
IntRelation
true
if the set of keys is the empty set.isEmpty
in interface IntRelation
public void put(int key, int val)
IntRelation
put
in interface IntRelation
public void set(int key, IntSet set)
IntRelation
set
in interface IntRelation
public IntSet get(int key)
IntRelation
get
in interface IntRelation
public Reiterator reiterator()
IntRelation
reiterator
in interface IntRelation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |