K - first time stamped valueV - second time stamped valuepublic 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
Default date equality threshold of 1 ns.
|
| Constructor and Description |
|---|
TimeStampedPair(K first,
V second)
Constructor.
|
TimeStampedPair(K first,
V second,
double dateEqualityThreshold)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
checkDatesConsistency(AbsoluteDate firstDate,
AbsoluteDate secondDate,
double dateEqualityThreshold)
Check date consistency.
|
AbsoluteDate |
getDate()
Get the date.
|
K |
getFirst()
Get first time stamped value.
|
V |
getSecond()
Get second time stamped value.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdurationFrompublic static final double DEFAULT_DATE_EQUALITY_THRESHOLD
public TimeStampedPair(K first, V second)
First and second value must have the same date.
first - first time stamped valuesecond - second time stamped valuepublic TimeStampedPair(K first, V second, double dateEqualityThreshold)
First and second value must have the same date.
first - first time stamped valuesecond - second time stamped valuedateEqualityThreshold - threshold below which dates are considered equalpublic static void checkDatesConsistency(AbsoluteDate firstDate, AbsoluteDate secondDate, double dateEqualityThreshold)
firstDate - first datesecondDate - second datedateEqualityThreshold - threshold below which dates are considered equalpublic AbsoluteDate getDate()
getDate in interface TimeStampedpublic K getFirst()
public V getSecond()
Copyright © 2002-2023 CS GROUP. All rights reserved.