public class MergeableTimeSlotMap<V extends MergeableFunction<V>> extends AtomicMutableMap<java.time.Instant,V> implements TimeSlotMap<V>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| 限定符和类型 | 字段和说明 |
|---|---|
private static long |
serialVersionUID |
private int |
span |
private TimeSlot |
timeSlot |
delegate| 构造器和说明 |
|---|
MergeableTimeSlotMap(int span,
TimeSlot timeSlot) |
MergeableTimeSlotMap(Map<java.time.Instant,AtomicStampedReference<V>> delegate,
int span,
TimeSlot timeSlot) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getSpan() |
TimeSlot |
getTimeSlot() |
V |
merge(java.time.Instant ins,
V newValue) |
java.time.Instant |
mutate(Object inputKey) |
Map<java.time.Instant,V> |
toMap() |
clear, containsKey, containsValue, entrySet, get, keySet, merge, put, remove, size, valuesoutputclear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesprivate static final long serialVersionUID
private final TimeSlot timeSlot
private final int span
public MergeableTimeSlotMap(int span,
TimeSlot timeSlot)
public MergeableTimeSlotMap(Map<java.time.Instant,AtomicStampedReference<V>> delegate, int span, TimeSlot timeSlot)
public java.time.Instant mutate(Object inputKey)
mutate 在接口中 TimeSlotMap<V extends MergeableFunction<V>>mutate 在类中 AtomicMutableMap<java.time.Instant,V extends MergeableFunction<V>>public Map<java.time.Instant,V> toMap()
toMap 在类中 AtomicMutableMap<java.time.Instant,V extends MergeableFunction<V>>public TimeSlot getTimeSlot()
public int getSpan()
Copyright © 2022. All rights reserved.