Interface NamedStacksSupplier
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Supplies a
NamedProvider
of Stack
s.- Author:
- Owen Feehan
-
Method Summary
Modifier and TypeMethodDescriptionstatic NamedStacksSupplier
cache
(NamedStacksSupplier supplier) Caches aNamedStacksSupplier
so that its value will be remembered after first execution.get()
Gets theNamedProvider
ofStack
s.
-
Method Details
-
get
Gets theNamedProvider
ofStack
s.- Returns:
- the
NamedProvider
ofStack
s. - Throws:
OperationFailedException
- if theStack
s cannot be retrieved.
-
cache
Caches aNamedStacksSupplier
so that its value will be remembered after first execution.- Parameters:
supplier
- the uncached supplier.- Returns:
- a new cached supplier.
-