|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.dlsc.flexgantt.model.TimeSpanComparator
public class TimeSpanComparator
A specialized Comparator
that is capable of comparing two time spans
with each other. This class comes in handy when tryin to sort collections of
time spans.
Collections.sort(java.util.List, Comparator)
Constructor Summary | |
---|---|
TimeSpanComparator()
|
Method Summary | |
---|---|
int |
compare(ITimeSpan span1,
ITimeSpan span2)
Compares two time spans with each other. |
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 TimeSpanComparator()
Method Detail |
---|
public int compare(ITimeSpan span1, ITimeSpan span2)
Comparable.compareTo(Object)
on the first time span passing in
the second span as an argument.
compare
in interface java.util.Comparator<ITimeSpan>
span1
- the first span to comparespan2
- the second span to compare
Comparator.compare(java.lang.Object, java.lang.Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |