Interface Adapter.PullDispenser<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.PullDispenser<T,U extends Adapter.Contract<T>>
Functional interface able to dispense multiple instances of an ADT identified by a zero-based index, passing the its constituent values to a supplied Contract and returning whatever that returns.
  • Method Summary

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

    • get

      T get(int index, U constructor)