public abstract class AbstractTime extends Object
Time implementations.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractTime(long size,
TimeUnit unit) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
long |
getSize()
Gets the length of this policy's time interval.
|
TimeUnit |
getUnit()
Gets the time unit for this policy's time interval.
|
int |
hashCode() |
abstract AbstractTime |
makeSpecificBasedOnTimeCharacteristic(TimeCharacteristic characteristic) |
long |
toMilliseconds()
Converts the time interval to milliseconds.
|
String |
toString() |
protected AbstractTime(long size,
TimeUnit unit)
public TimeUnit getUnit()
public long getSize()
public long toMilliseconds()
public abstract AbstractTime makeSpecificBasedOnTimeCharacteristic(TimeCharacteristic characteristic)
Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.