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 Stacks.- Author:
- Owen Feehan
-
Method Summary
Modifier and TypeMethodDescriptionstatic NamedStacksSuppliercache(NamedStacksSupplier supplier) Caches aNamedStacksSupplierso that its value will be remembered after first execution.get()Gets theNamedProviderofStacks.
-
Method Details
-
get
Gets theNamedProviderofStacks.- Returns:
- the
NamedProviderofStacks. - Throws:
OperationFailedException- if theStacks cannot be retrieved.
-
cache
Caches aNamedStacksSupplierso that its value will be remembered after first execution.- Parameters:
supplier- the uncached supplier.- Returns:
- a new cached supplier.
-