public interface FunctionCatalog
Modifier and Type | Method and Description |
---|---|
Set<String> |
getNames(Class<?> type) |
<T> T |
lookup(Class<?> type,
String name)
Will look up the instance of the functional interface by name and type which can
only be Supplier, Consumer or Function.
|
default <T> T |
lookup(String name)
Will look up the instance of the functional interface by name only.
|
default int |
size()
Return the count of functions registered in this catalog.
|
default <T> T lookup(String name)
T
- instance typename
- the name of the functional interface. Must not be null;<T> T lookup(Class<?> type, String name)
T
- instance typetype
- the type of functional interface. Can be nullname
- the name of the functional interface. Must not be null;default int size()
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.