timeboundedobject.java
来自「一个用java写的地震分析软件(无源码)-used to write a sei」· Java 代码 · 共 33 行
JAVA
33 行
package org.trinet.util;
import java.util.Date;
/**
* An object that is associated with a particular time span. For example, a channel
* gain has a particular value only for a period of time. It will change when
* components are changed or, perhaps, when it is recalibrated.
*/
public class TimeBoundedObject implements TimeBoundedObjectIF {
public TimeBoundedObject() {
}
/** Returns 'true' if epochtime is in the time span for which this object
* is valid. */
public boolean isValidAt(double epochtime) {
return timespan.contains(epochtime);
}
/** Return the timespan for for which this object is valid. */
public TimeSpan getTimeSpan() {
return timespan;
}
/** Set the timespan for for which this object is valid. */
public void setTimespan(TimeSpan timespan) {
timespan.set(timespan);
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?