|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnl.tudelft.simulation.messaging.comparators.FieldComparator
A FieldComparator
Copyright (c) 2003-2005 Delft University of Technology, Jaffalaan 5, 2628 BX
Delft, the Netherlands. All rights reserved.
See for project information
www.simulation.tudelft.nl .
The source code and binary code of this software is proprietary information
of Delft University of Technology.
| Field Summary | |
protected java.lang.String |
fieldName
the field to question |
protected boolean |
negative
normal of negative operation |
protected java.util.Comparator |
next
the next comparator in the chain |
| Constructor Summary | |
FieldComparator(java.lang.String field)
constructs a new FieldComparator |
|
FieldComparator(java.lang.String field,
java.util.Comparator next)
constructs a new FieldComparator |
|
| Method Summary | |
int |
compare(java.lang.Object o1,
java.lang.Object o2)
|
boolean |
isNegative()
|
void |
setNegative(boolean negative)
|
| 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 |
| Field Detail |
protected java.lang.String fieldName
protected java.util.Comparator next
protected boolean negative
| Constructor Detail |
public FieldComparator(java.lang.String field)
field - the field to compare to
public FieldComparator(java.lang.String field,
java.util.Comparator next)
field - the field to compare tonext - the next comparator to use| Method Detail |
public int compare(java.lang.Object o1,
java.lang.Object o2)
compare in interface java.util.ComparatorComparator.compare(java.lang.Object, java.lang.Object)public boolean isNegative()
public void setNegative(boolean negative)
negative - The negative to set.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||