public class Units extends Object implements Serializable, Cloneable
Constructor and Description |
---|
Units()
Simple constructor.
|
Units(String temperature,
String distance,
String pressure,
String speed)
Constructs a new Units object
|
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
boolean |
equals(Object o) |
String |
getDistance()
Units of distance
|
String |
getPressure()
Units of pressure
|
String |
getSpeed()
Units of speed
|
String |
getTemperature()
Units of Temperature.
|
int |
hashCode() |
void |
setDistance(String distance)
Units of distance
|
void |
setPressure(String pressure)
Units of pressure
|
void |
setSpeed(String speed)
Units of speed
|
void |
setTemperature(String temperature)
Units of Temperature.
|
String |
toString() |
public String getTemperature()
public void setTemperature(String temperature)
temperature
- units of temp ("f" or "c");public String getDistance()
public void setDistance(String distance)
distance
- units of distance ("mi" or "km")public String getPressure()
public void setPressure(String pressure)
pressure
- units of pressure ("in" or "mb")public String getSpeed()
public void setSpeed(String speed)
speed
- units of speed ("mph" or "kph")Copyright © 2016. All rights reserved.