@CodeReview(reviewer="Kevin R. Dixon", date="2008-10-02", changesNeeded=false, comments="Looks fine.") public class AbstractWeighted extends AbstractCloneableSerializable implements Weighted
| Modifier and Type | Field and Description |
|---|---|
static double |
DEFAULT_WEIGHT
Default weight, 1.0
|
protected double |
weight
The weight
|
| Constructor and Description |
|---|
AbstractWeighted()
Creates a new instance of AbstractWeighted
|
AbstractWeighted(double weight)
Creates a new instance of AbstractWeighted
|
| Modifier and Type | Method and Description |
|---|---|
double |
getWeight()
Gets the weight of the object.
|
void |
setWeight(double weight)
Setter for weight
|
clonepublic static final double DEFAULT_WEIGHT
protected double weight