📄 timerange.java
字号:
package org.trinet.waveserver.rt;
import java.util.*;
/** Boolean methods with arguments should return the result of a comparing the input parameter(s) relative to invoking instance. */
public interface TimeRange {
/** Return the TimeRange reference of this instance. */
public TimeRange getTimeRange() ;
/** Return the start Date of the range. */
public Date getStartTimestamp() ;
/** Return the end Date of the range. */
public Date getEndTimestamp() ;
/** Return time in seconds since Date(0). */
public double getStartTimeSecs() ;
/** Return time in seconds since Date(0). */
public double getEndTimeSecs() ;
/** Return time difference in seconds between the start time of the input TimeRange and the end time of this TimeRange instance. */
public double timeGapSeconds(TimeRange nextTimeRange) ;
/** Return time difference in seconds between the input time and the end time of this TimeRange instance. */
public double timeGapSeconds(Date nextStartTimestamp) ;
public boolean after(Date date) ;
public boolean after(TimeRange timeRange) ;
public boolean before(Date date) ;
public boolean before(TimeRange timeRange) ;
public boolean excludes(Date date) ;
public boolean excludes(TimeRange timeRange) ;
public boolean excludes(Date start, Date end) ;
public boolean includes(TimeRange timeRange) ;
public boolean includes(Date start, Date end) ;
public boolean includes(Date date) ;
public boolean overlaps(TimeRange timeRange) ;
public boolean overlaps(Date start, Date end) ;
public boolean within(TimeRange timeRange) ;
public boolean within(Date start, Date end) ;
/** Returns true if startTime > endTime for this instance. */
public boolean isReversed() ;
/** Returns false == times are not defined || isReversed() == true for this instance. */
public boolean isValid() ;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -