Interface Adapter.Dispenser<T,U extends Adapter.Contract<T>>

Enclosing class:
Adapter<T,U>
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 static interface Adapter.Dispenser<T,U extends Adapter.Contract<T>>
Functional interface able to dispense one instance of an ADT by passing its constituent values to a supplied Contract and returning whatever that returns.
  • Method Summary

    Modifier and Type
    Method
    Description
    get(U constructor)
     
  • Method Details

    • get

      T get(U constructor)