Class Function0<A>

java.lang.Object
org.opencastproject.util.data.Function0<A>
Direct Known Subclasses:
Effect0, Function0.X

public abstract class Function0<A> extends Object
Function of arity 0, i.e. a constant function.
See Also:
  • Constructor Details

    • Function0

      public Function0()
  • Method Details

    • apply

      public abstract A apply()
      Apply function yielding a constant value. Don't be tempted to become impure!
    • then

      public <B> Function0<B> then(Function<A,B> f)
      Apply this function, then pass the result to f.
    • then

      public <B> Function0<B> then(Function0<B> f)
      Apply this function and ignore its result, then apply f.