Class StatefulUpdate<T>


  • public class StatefulUpdate<T>
    extends Object
    Stateful map of values updated according to custom external code.
    Since:
    2019.1
    • Constructor Detail

      • StatefulUpdate

        public StatefulUpdate​(Function<T,​T> updateFunc)
        Parameters:
        updateFunc - function to give new value, or null to indicate value doesn't need an update
    • Method Detail

      • isChanged

        public boolean isChanged​(T value)
      • newValue

        @Nullable
        public T newValue​(T oldValue)