Package tools.refinery.store.adapter
Class AdapterUtils
java.lang.Object
tools.refinery.store.adapter.AdapterUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> T
getAdapter
(Collection<? super T> adapters, Class<T> type) static <T,
U extends T>
Optional<U> tryGetAdapter
(Collection<T> adapters, Class<? extends U> type)
-
Method Details
-
tryGetAdapter
public static <T,U extends T> Optional<U> tryGetAdapter(Collection<T> adapters, Class<? extends U> type) -
getAdapter
-