public final class Time extends Object implements Serializable
TimeUnit.| Constructor and Description |
|---|
Time(double m_value,
TimeUnit m_unit)
Creates Time class object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Compares this Time to the specified object.
|
TimeUnit |
getUnit()
Returns the
TimeUnit as a measure of time. |
double |
getValue()
Returns the value of Time.
|
double |
getValue(TimeUnit unit)
|
int |
hashCode()
Returns a hash code for this Time.
|
String |
toString()
Returns the
String representation of the Time. |
public TimeUnit getUnit()
TimeUnit as a measure of time.TimeUnit as a measure of time.public double getValue()
public double getValue(TimeUnit unit)
public int hashCode()
public boolean equals(Object obj)