public class TimeRange extends Object
Modifier and Type | Field and Description |
---|---|
protected long |
lastTimestamp
Timestamp of last change
|
Modifier | Constructor and Description |
---|---|
protected |
TimeRange(long startTimestamp,
long endTimestamp)
Main constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
containsTimestamp(long timestampInMs)
Indicates whether this time range contains given timestamp.
|
long |
getEndTimestamp() |
long |
getStartTimestamp() |
String |
toString() |
protected StringBuilder |
toStringBuilder(StringBuilder stringBuilder) |
protected long lastTimestamp
protected TimeRange(long startTimestamp, long endTimestamp)
startTimestamp
- Beginning of the time rangeendTimestamp
- Ending of the time rangepublic long getStartTimestamp()
public long getEndTimestamp()
public boolean containsTimestamp(long timestampInMs)
timestampInMs
- Timestamp express in millisecondsprotected StringBuilder toStringBuilder(StringBuilder stringBuilder)
Copyright © 2019. All rights reserved.