|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Measurement
A class that stores measurements. Once created a measurement can be recorded, or obtained, in either feet, inches, meters, or centimeters.
Constructor Summary | |
Measurement()
Create a Measurement that is initialized to 0. |
|
Measurement(double inches)
Create a Measurement set to a specified number of inches. |
Method Summary | |
double |
getCentimeters()
Get the measurement in centimeters. |
double |
getFeet()
Get the measurement in feet. |
double |
getInches()
Get the measurement in inches. |
double |
getMeters()
Get the measurement in meters. |
void |
setCentimeters(double centimeters)
Set the measurement in centimeters. |
void |
setFeet(double feet)
Set the measurement in feet. |
void |
setInches(double inches)
Set the measurement in inches. |
void |
setMeters(double meters)
Set the measurement in meters. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public Measurement()
public Measurement(double inches)
inches
- measurement in inchesMethod Detail |
public double getInches()
public void setInches(double inches)
inches
- measurement in inchespublic double getFeet()
public void setFeet(double feet)
feet
- measurement in feetpublic double getMeters()
public void setMeters(double meters)
meters
- measurement in meterspublic double getCentimeters()
public void setCentimeters(double centimeters)
centimeters
- measurement in centimeters
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |