java.lang.Comparable<ReservationInterval>public class ReservationInterval extends java.lang.Object implements java.lang.Comparable<ReservationInterval>
| Constructor | Description |
|---|---|
ReservationInterval(long startTime,
long endTime) |
| Modifier and Type | Method | Description |
|---|---|---|
int |
compareTo(ReservationInterval anotherInterval) |
|
boolean |
equals(java.lang.Object obj) |
|
long |
getEndTime() |
Get the end time of the reservation interval
|
long |
getStartTime() |
Get the start time of the reservation interval
|
int |
hashCode() |
|
boolean |
isOverlap(long tick) |
Returns whether the interval is active at the specified instant of time
|
java.lang.String |
toString() |
public long getStartTime()
public long getEndTime()
public boolean isOverlap(long tick)
tick - the instance of the time to checkpublic int compareTo(ReservationInterval anotherInterval)
compareTo in interface java.lang.Comparable<ReservationInterval>public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2008–2025 Apache Software Foundation. All rights reserved.