|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ResourceUnit
Represents a unit in which quantity is expressed in a SizedResourcePool
.
Method Summary | |
---|---|
int |
compareTo(long thisSize,
long thatSize,
ResourceUnit thatUnit)
Compares thisSize in this unit to thatSize in thatUnit . |
Method Detail |
---|
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
contract
java.lang.IllegalArgumentException
- if the units are not comparable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |