public interface ResourceUnit
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(long thisSize,
long thatSize,
ResourceUnit thatUnit)
Compare
thisSize of this unit to thatSize of
thatUnit. |
int compareTo(long thisSize,
long thatSize,
ResourceUnit thatUnit)
throws java.lang.IllegalArgumentException
thisSize of this unit to thatSize of
thatUnit.
Returns 1, 0, or -1 if the thisSize of this is greater than,
equal to, or less than thatSize of thatUnit
respectively.
thisSize - size in this unitthatSize - size in thatUnitthatUnit - other unitjava.lang.IllegalArgumentException - if the units are not comparable