timerange.java
来自「一个用java写的地震分析软件(无源码)-used to write a sei」· Java 代码 · 共 48 行
JAVA
48 行
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 + =
减小字号Ctrl + -
显示快捷键?