Class TimeWindow
- java.lang.Object
-
- cern.nxcals.api.backport.domain.core.TimeWindow
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<TimeWindow>
public class TimeWindow extends java.lang.Object implements java.lang.Comparable<TimeWindow>, java.io.Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TimeWindow(java.sql.Timestamp startTime, java.sql.Timestamp endTime, java.lang.String info)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(java.lang.Object other)
int
compareTo(TimeWindow tw)
boolean
equals(java.lang.Object o)
java.sql.Timestamp
getEndTime()
java.lang.String
getInfo()
java.sql.Timestamp
getStartTime()
int
hashCode()
static TimeWindow
newTimeWindow(java.sql.Timestamp startTime, java.sql.Timestamp endTime)
static TimeWindow
newTimeWindow(java.sql.Timestamp startTime, java.sql.Timestamp endTime, java.lang.String info)
java.lang.String
print(LoggingTimeZone timeZone)
void
setEndTime(java.sql.Timestamp endTime)
void
setInfo(java.lang.String info)
void
setStartTime(java.sql.Timestamp startTime)
-
-
-
Method Detail
-
newTimeWindow
public static TimeWindow newTimeWindow(java.sql.Timestamp startTime, java.sql.Timestamp endTime)
-
newTimeWindow
public static TimeWindow newTimeWindow(java.sql.Timestamp startTime, java.sql.Timestamp endTime, java.lang.String info)
-
compareTo
public int compareTo(TimeWindow tw)
- Specified by:
compareTo
in interfacejava.lang.Comparable<TimeWindow>
-
print
public java.lang.String print(LoggingTimeZone timeZone)
-
getStartTime
public java.sql.Timestamp getStartTime()
-
getEndTime
public java.sql.Timestamp getEndTime()
-
getInfo
public java.lang.String getInfo()
-
setStartTime
public void setStartTime(java.sql.Timestamp startTime)
-
setEndTime
public void setEndTime(java.sql.Timestamp endTime)
-
setInfo
public void setInfo(java.lang.String info)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-