public class TimeInterval extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TimeInterval.FilterOverlappingIterator<T extends TimeInterval>
Filters an input iterator to the intervals that match the given timeInterval
|
| Constructor and Description |
|---|
TimeInterval()
Creates a TimeInterval with no start and no end
|
TimeInterval(long start,
long end) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains0(long t)
Checks that [this.start, this.end) contains t
|
long |
getEnd() |
long |
getStart() |
boolean |
hasEnd() |
boolean |
hasStart() |
static TimeInterval |
openEnd(long start) |
static TimeInterval |
openStart(long end)
creates a TimeInterval with no start but with an end
|
void |
setEnd(long end) |
void |
setStart(long start) |
String |
toString() |
String |
toStringEncoded() |
public TimeInterval(long start,
long end)
public TimeInterval()
public static TimeInterval openStart(long end)
public static TimeInterval openEnd(long start)
public boolean hasStart()
public boolean hasEnd()
public void setStart(long start)
public long getStart()
public void setEnd(long end)
public long getEnd()
public boolean contains0(long t)
public String toStringEncoded()
Copyright © 2018 Space Applications Services. All rights reserved.