Package eu.europa.esig.dss.spi.util
Class MutableTimeDependentValues<T extends TimeDependent>
java.lang.Object
eu.europa.esig.dss.spi.util.TimeDependentValues<T>
eu.europa.esig.dss.spi.util.MutableTimeDependentValues<T>
- Type Parameters:
T
- sub type of TimeDependent
- All Implemented Interfaces:
Serializable
,Iterable<T>
Mutable list of time-dependent values.
- Author:
- jdvorak
- See Also:
-
Field Summary
Fields inherited from class eu.europa.esig.dss.spi.util.TimeDependentValues
list
-
Constructor Summary
ConstructorDescriptionEmpty constructorMutableTimeDependentValues
(Iterable<T> srcList) Default constructor -
Method Summary
Methods inherited from class eu.europa.esig.dss.spi.util.TimeDependentValues
getAfter, getCurrent, getLatest, iterator, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
MutableTimeDependentValues
public MutableTimeDependentValues()Empty constructor -
MutableTimeDependentValues
Default constructor- Parameters:
srcList
- list of time dependent values
-
-
Method Details
-
clear
public void clear()Clears the current list -
addOldest
Adds the value only of it is the oldest in the current list- Parameters:
x
- the time dependent value to add
-
getList
Gets the current list- Returns:
- list of time dependent values
-