public class TimeBounds
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected long |
endTime |
protected long |
startTime |
Constructor and Description |
---|
TimeBounds()
Creates a TimeBounds object ready for times to be added to it.
|
TimeBounds(long start,
long end) |
Modifier and Type | Method and Description |
---|---|
void |
addTimeToBounds(long timeStamp)
Add a time to the bounds, resetting the start and end time as necessary.
|
void |
addTimeToBounds(TimeBounds timeBounds)
Add the start and end times of provided TimeBounds to this TimeBounds.
|
boolean |
equals(java.lang.Object obj) |
long |
getEndTime() |
long |
getStartTime() |
int |
hashCode() |
boolean |
isUnset() |
void |
reset() |
void |
setTimes(long start,
long end) |
java.lang.String |
toString() |
public TimeBounds()
public TimeBounds(long start, long end)
public void setTimes(long start, long end)
public long getStartTime()
public long getEndTime()
public void reset()
public void addTimeToBounds(long timeStamp)
timeStamp
- in millisecondspublic java.lang.String toString()
toString
in class java.lang.Object
public void addTimeToBounds(TimeBounds timeBounds)
timeBounds
- public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public boolean isUnset()
public int hashCode()
hashCode
in class java.lang.Object
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details