Package pro.horde.os.cutils.function
Interface Dealer<T>
-
- Type Parameters:
T- the type of results supplied by this supplier.
- All Known Implementing Classes:
Idler
- 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 Dealer<T>
Represents a dealer of results. UnLikeSupplierand likeCallable,deal()throw anException. Uses theDealerinstead ofSupplierif anExceptionwill be thrown for the operation prior to the supplying of a result.There is no requirement that the
Dealerwill return distinct result when called.This is a functional interface whose functional method is
deal().
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Tdeal()Gets a result.
-