Checkpoint: ExchangeServiceTest
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
This commit is contained in:
@ -59,10 +59,10 @@ public class MatchData {
|
||||
}
|
||||
|
||||
public int compare(MatchData m1) {
|
||||
return Float.compare(m1.getExchangesMsValue(), this.getExchangesMsValue());
|
||||
return Long.compare(m1.getExchangesMsValue(), this.getExchangesMsValue());
|
||||
}
|
||||
|
||||
public float getExchangesMsValue(){
|
||||
public long getExchangesMsValue(){
|
||||
return this.exchangeOne.getDataExchange().getTime() + this.exchangeTwo.getDataExchange().getTime();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user