public class TimeInterval
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
FullDate |
endDate |
FullTime |
endTime |
FullDate |
startDate |
FullTime |
startTime |
| Constructor and Description |
|---|
TimeInterval()
Class constructor, no information
|
TimeInterval(FullDate startDate,
FullTime startTime,
FullDate endDate,
FullTime endTime)
Constructor from date and time objects
|
TimeInterval(TimeInterval timeInterval)
Copy constructor from an existing time interval object
|
TimeInterval(TimePoint start,
TimePoint end)
Constructor from time points
|
| Modifier and Type | Method and Description |
|---|---|
static int |
compareDateTime(FullDate dateA,
FullTime timeA,
FullDate dateB,
FullTime timeB)
Compares two date & time objects.
|
double |
getDurationMinutes()
Gets the duration of the time interval in minutes
|
double |
getDurationSeconds()
Gets the duration of the time interval in seconds.
|
TimePoint |
getEndPoint() |
TimePoint |
getStartPoint() |
static boolean |
overlap(TimeInterval a,
TimeInterval b)
Checks if there is overlap between two time intervals
|
java.lang.String |
toString() |
public FullDate startDate
public FullTime startTime
public FullDate endDate
public FullTime endTime
public TimeInterval(TimeInterval timeInterval)
timeInterval - public TimeInterval(FullDate startDate, FullTime startTime, FullDate endDate, FullTime endTime)
startDate - startTime - endDate - endTime - public TimeInterval(TimePoint start, TimePoint end)
start - end - public TimeInterval()
public TimePoint getStartPoint()
public TimePoint getEndPoint()
public double getDurationMinutes()
public double getDurationSeconds()
public java.lang.String toString()
toString in class java.lang.Objectpublic static int compareDateTime(FullDate dateA, FullTime timeA, FullDate dateB, FullTime timeB)
dateA - timeA - dateB - timeB - public static boolean overlap(TimeInterval a, TimeInterval b)
a - b -