|
Venice 0.7beta | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mov.util.TradingDateComparator
public class TradingDateComparator
A comparator for comparing TradingDate
objects.
Field Summary | |
---|---|
static int |
BACKWARDS
Sort backwards |
static int |
FORWARDS
Sort forwards |
Constructor Summary | |
---|---|
TradingDateComparator(int direction)
Create a new TradingDateComparator which sorts in the
given direction. |
Method Summary | |
---|---|
int |
compare(java.lang.Object o1,
java.lang.Object o2)
Compare the specified objects. |
boolean |
equals(java.lang.Object o1,
java.lang.Object o2)
Test the specified objects for equality. |
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 |
---|
public static int FORWARDS
public static int BACKWARDS
Constructor Detail |
---|
public TradingDateComparator(int direction)
TradingDateComparator
which sorts in the
given direction.
Method Detail |
---|
public int compare(java.lang.Object o1, java.lang.Object o2)
compare
in interface java.util.Comparator
o1
- the first objecto2
- the second object
0
if the objects are equal; 1
if
o1
is greater than o2
or -1
otherwise. If the search order is backwards this will be reversed.public boolean equals(java.lang.Object o1, java.lang.Object o2)
o1
- the first objecto2
- the second object
1
if the objects have the same date;
0
otherwise.
|
Venice 0.7beta | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |