Interface SupplierWithContext<C,R>

Type Parameters:
C - The context type.
R - The return type.
All Superinterfaces:
Function<C,R>
All Known Subinterfaces:
SupplierWithContext.Ignored<C,R>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface SupplierWithContext<C,R> extends Function<C,R>
A supplier like interface for use with Plans and their contexts.
The subinterface SupplierWithContext.Ignored is provided for suppliers that do not need the context object.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    A SupplierWithContext that ignores the context object.
  • Method Summary

    Modifier and Type
    Method
    Description
    default R
    apply(C c)
     
    get(C context)
     

    Methods inherited from interface java.util.function.Function

    andThen, compose
  • Method Details

    • get

      R get(C context)
    • apply

      default R apply(C c)
      Specified by:
      apply in interface Function<C,R>