Class UnaryBoundFunctionSupport<T,R>

java.lang.Object
it.tidalwave.ui.core.function.BoundFunctionSupport<T,R>
it.tidalwave.ui.core.function.UnaryBoundFunctionSupport<T,R>
All Implemented Interfaces:
ChangingSource<R>, BoundFunction<T,R>, Mutable
Direct Known Subclasses:
NonEmptyFunction, WeakCopyFunctionSupport

public abstract class UnaryBoundFunctionSupport<T,R> extends BoundFunctionSupport<T,R>
Since:
2.0-ALPHA-1
Author:
Fabrizio Giudici
  • Field Details

    • value

      protected R value
  • Constructor Details

    • UnaryBoundFunctionSupport

      protected UnaryBoundFunctionSupport(@Nonnull ChangingSource<T> source)
  • Method Details

    • onSourceChange

      protected void onSourceChange(@Nonnull T oldSourceValue, @Nonnull T newSourceValue)
    • function

      @Nonnull protected abstract R function(T value)
    • get

      @Nonnull public final R get()
      Description copied from interface: ChangingSource
      Returns the value of this object.
      Returns:
      the value