Class WeakCopyFunctionSupport<T>

    • Field Detail

      • targetValue

        @Nonnull
        protected T targetValue
    • Constructor Detail

      • WeakCopyFunctionSupport

        public WeakCopyFunctionSupport​(@Nonnull
                                       ChangingSource<T> source)
    • Method Detail

      • set

        public void set​(T value)
        Description copied from interface: Changeable
        Sets a new value to this object.
        Specified by:
        set in interface Changeable<T>
        Parameters:
        value - the new value
      • shouldChange

        protected abstract boolean shouldChange​(T oldValue,
                                                T newValue)