public interface ResourceUnit
SizedResourcePool
.Modifier and Type | Method and Description |
---|---|
int |
compareTo(long thisSize,
long thatSize,
ResourceUnit thatUnit)
Compares
thisSize in this unit to thatSize in thatUnit . |
int compareTo(long thisSize, long thatSize, ResourceUnit thatUnit) throws java.lang.IllegalArgumentException
thisSize
in this unit to thatSize
in 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 thatUnit
thatUnit
- other ResourceUnit
compareTo
contractjava.lang.IllegalArgumentException
- if the units are not comparable