K
- first time stamped value
V
- second time stamped value
public class TimeStampedPair<K extends TimeStamped,V extends TimeStamped> extends Object implements TimeStamped
TimeStamped
Modifier and Type | Field and Description |
---|---|
static double |
DEFAULT_DATE_EQUALITY_THRESHOLD
默认日期相等阈值为1纳秒。
|
Constructor and Description |
---|
TimeStampedPair(K first, V second)
构造函数。
|
TimeStampedPair(K first, V second, double dateEqualityThreshold)
构造函数。
|
Modifier and Type | Method and Description |
---|---|
static void |
checkDatesConsistency(AbsoluteDate firstDate, AbsoluteDate secondDate, double dateEqualityThreshold)
检查日期一致性。
|
AbsoluteDate |
getDate()
获取日期。
|
K |
getFirst()
获取第一个时间戳值。
|
V |
getSecond()
获取第二个时间戳值。
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
durationFrom
public static final double DEFAULT_DATE_EQUALITY_THRESHOLD
public TimeStampedPair(K first, V second)
第一个和第二个值必须具有相同的日期。
first
- 第一个时间戳值
second
- 第二个时间戳值
public static void checkDatesConsistency(AbsoluteDate firstDate, AbsoluteDate secondDate, double dateEqualityThreshold)
firstDate
- 第一个日期
secondDate
- 第二个日期
dateEqualityThreshold
- 日期被视为相等的阈值
public AbsoluteDate getDate()
getDate
在接口 TimeStamped
public K getFirst()
public V getSecond()
Copyright © 2002-2023 CS GROUP. All rights reserved.