public class RetentionTimeInterval extends Object implements RetentionTime
| Constructor and Description |
|---|
RetentionTimeInterval(double startTime,
double endTime,
TimeUnit unit)
Constructor for a RetentionTimeInterval from startTime to endTime.
|
RetentionTimeInterval(RetentionTimeInterval src)
Copy constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(RetentionTime retentionTime) |
RetentionTimeInterval |
copy() |
boolean |
equals(Object o) |
double |
getMaxRetentionTime()
Returns the largest retention time, the units of the time is seconds
|
double |
getMinRetentionTime()
Returns the smallest retention time, the units of the time is seconds
|
double |
getTime()
Returns the time in the middle of the interval in seconds
|
int |
hashCode() |
String |
toString() |
public RetentionTimeInterval(double startTime,
double endTime,
TimeUnit unit)
startTime - the start timeendTime - the end timeunit - the time unit for startTime and endTimepublic RetentionTimeInterval(RetentionTimeInterval src)
src - the RetentionTime to copypublic double getTime()
getTime in interface RetentionTimepublic double getMinRetentionTime()
RetentionTimegetMinRetentionTime in interface RetentionTimepublic double getMaxRetentionTime()
RetentionTimegetMaxRetentionTime in interface RetentionTimepublic RetentionTimeInterval copy()
copy in interface RetentionTimepublic boolean contains(RetentionTime retentionTime)
contains in interface RetentionTimeCopyright © 2016. All Rights Reserved.