Class LastValueCache


  • public class LastValueCache
    extends Object
    Cache for the last known value of each parameter. thread safe
    • Constructor Detail

      • LastValueCache

        public LastValueCache()
    • Method Detail

      • getValue

        public ParameterValue getValue​(Parameter p)
        Returns the latest known value for p or null if there is none.
        Parameters:
        p -
        Returns:
      • update

        public void update​(Collection<ParameterValue> params)
        Update the cache with all parameters.

        Note: This is not an atomic operation!

        Parameters:
        params -
      • size

        public int size()