|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The instances of classes that implement this interface are weighable i.e. they can be compared based upon their weight (or importance). This interface allows the weight to be increased only.
| Method Summary | |
void |
addWeight(int weight)
sets the weight for this instance |
int |
getWeight()
Gives the weight of the instance |
| Method Detail |
public int getWeight()
public void addWeight(int weight)
weight - the weight
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||