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>

public class MutableTimeDependentValues<T extends TimeDependent> extends TimeDependentValues<T>
Mutable list of time-dependent values.
Author:
jdvorak
See Also:
  • Constructor Details

    • MutableTimeDependentValues

      public MutableTimeDependentValues()
      Empty constructor
    • MutableTimeDependentValues

      public MutableTimeDependentValues(Iterable<T> srcList)
      Default constructor
      Parameters:
      srcList - list of time dependent values
  • Method Details

    • clear

      public void clear()
      Clears the current list
    • addOldest

      public void addOldest(T x)
      Adds the value only of it is the oldest in the current list
      Parameters:
      x - the time dependent value to add
    • getList

      public List<T> getList()
      Gets the current list
      Returns:
      list of time dependent values