public class Weight
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected double |
value
A numerical weight value
|
Constructor and Description |
---|
Weight() |
Modifier and Type | Method and Description |
---|---|
double |
decrement()
Decrement and return the new count
|
double |
decrement(double n)
Decrement by n and return the new count
|
double |
decrement(int n)
Decrement by n and return the new count
|
double |
getValue()
Get the current count
|
double |
increment()
Increment and return the new count
|
double |
increment(double n)
Increment by n and return the new count
|
double |
increment(int n)
Increment by n and return the new count
|
double |
setValue(double value)
Set the current count
|
double |
setValue(int value)
Set the current count
|
public double increment()
public double increment(int n)
public double increment(double n)
public double decrement()
public double decrement(int n)
public double decrement(double n)
public double getValue()
public double setValue(int value)
public double setValue(double value)