public class RelativeTime extends Object
| Constructor and Description |
|---|
RelativeTime(int value,
TimeUnit unit) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
long |
getTimeRelativeTo(long time)
Returns the time in milliseconds relative to the specified time.
|
String |
getUnit()
The unit of time.
|
int |
getValue()
The time's value.
|
int |
hashCode() |
public RelativeTime(int value,
TimeUnit unit)
public int getValue()
public String getUnit()
public long getTimeRelativeTo(long time)
time.time - time to calculate the relative time.Copyright © 2018. All rights reserved.