- java.lang.Object
-
- org.praxislive.core.Lookup.Empty
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.praxislive.core.Lookup
Lookup.Empty, Lookup.ObjectLookup, Lookup.Provider
-
-
Constructor Summary
Constructors Constructor Description Empty()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Optional<T>
find(Class<T> type)
Search for the first implementation of the given type.<T> Stream<T>
findAll(Class<T> type)
Search for all implementations of the given type.
-
-
-
Method Detail
-
find
public <T> Optional<T> find(Class<T> type)
Description copied from interface:Lookup
Search for the first implementation of the given type. Returns anOptional
wrapping an instance of the given Class, orOptional.EMPTY
if none exists.
-
-