Package kos.api
Class ImplementationLoader.Result<T>
java.lang.Object
kos.api.ImplementationLoader.Result<T>
- Type Parameters:
T-
- Enclosing interface:
- ImplementationLoader
Customized optional result. It was created so developers might experience optimal
experience when using the
ImplementationLoader.-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final RuntimeException(package private) final T -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> ImplementationLoader.Result<T>empty()booleanfailed()static <T,E extends RuntimeException>
ImplementationLoader.Result<T>failure(E cause) get()booleanisEmpty()boolean<R> ImplementationLoader.Result<R>static <T> ImplementationLoader.Result<T>of(T value) orElseGet(Function<RuntimeException, T> other) <E extends RuntimeException>
TorElseThrow(Supplier<E> cause) toString()