|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nih.nlm.umls.meta.ChainRestrictor
public class ChainRestrictor
Default implementation of the CoocurrenceContext
interface.
| Constructor Summary | |
|---|---|
ChainRestrictor()
Instantiates an empty ChainRestrictor. |
|
| Method Summary | |
|---|---|
void |
add(Restrictor restrictor)
Adds the given Restrictor to
the chain so that it will be applied. |
void |
add(Restrictor restrictor,
boolean is_comparator)
Adds the given Restrictor to the
chain and uses it for the sort order. |
void |
clear()
Clears list of restictors in chain so that no restrictors will be applied. |
int |
compare(Object obj1,
Object obj2)
Compares objects for sort order. |
boolean |
keep(Object o)
Indicates if the given Object should be
kept based on the Restrictors in the chain. |
void |
remove(Restrictor restrictor)
Removes the given Restrictor from
the chain so it will not be applied. |
void |
setComparator(Comparator comp)
Sets the Comparator to be used for the sort order. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
|---|
equals |
| Constructor Detail |
|---|
public ChainRestrictor()
ChainRestrictor.
| Method Detail |
|---|
public boolean keep(Object o)
Object should be
kept based on the Restrictors in the chain.
keep in interface Restrictoro - Object
boolean returns false if the given object is not to
be kept by all the Restrictors in the chain
true otherwisepublic void add(Restrictor restrictor)
Restrictor to
the chain so that it will be applied.
restrictor - Restrictor
public void add(Restrictor restrictor,
boolean is_comparator)
Restrictor to the
chain and uses it for the sort order.
restrictor - Restrictoris_comparator - booleanpublic void setComparator(Comparator comp)
Comparator to be used for the sort order.
comp - Comparatorpublic void remove(Restrictor restrictor)
Restrictor from
the chain so it will not be applied.
restrictor - Restrictorpublic void clear()
public int compare(Object obj1,
Object obj2)
compare in interface Comparatorobj1 - Objectobj2 - Object
int
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||