T
- the type of data
KK
- type of the field element
public interface FieldTimeStampedCache<T extends FieldTimeStamped<KK>,KK extends org.hipparchus.CalculusFieldElement<KK>>
FieldTimeStamped
数据的数据结构的接口。
ImmutableFieldTimeStampedCache
Modifier and Type | Method and Description |
---|---|
T |
getEarliest()
获取此缓存中最早的条目。
|
T |
getLatest()
获取此缓存中最新的条目。
|
Stream<T> |
getNeighbors(FieldAbsoluteDate<KK> central)
获取围绕中心日期的条目。
|
int |
getNeighborsSize()
获取由 getNeighbors(FieldAbsoluteDate) 返回的列表的固定大小。
|
Stream<T> getNeighbors(FieldAbsoluteDate<KK> central)
如果中心日期在覆盖范围内,返回的数组将平衡,中心日期之前的点和中心日期之后的点各占一半(当然取决于n的奇偶性)。如果中心日期接近边界,则返回的数组将不平衡,并且只包含n个最早(或最晚)的条目。后一种情况的典型示例是闰秒缓存,因为闰秒的数量不能任意增加。
此方法可安全地供多个线程同时执行。
central
- 中心日期
getNeighborsSize()
。
int getNeighborsSize()
getNeighbors(FieldAbsoluteDate)
返回的列表的固定大小。
T getEarliest() throws IllegalStateException
IllegalStateException
- 如果此缓存为空
T getLatest() throws IllegalStateException
IllegalStateException
- 如果此缓存为空
Copyright © 2002-2023 CS GROUP. All rights reserved.