Uses of Class
me.nemo_64.betterinputs.api.util.Option
-
Packages that use Option Package Description me.nemo_64.betterinputs.api.util me.nemo_64.betterinputs.api.util.argument -
-
Uses of Option in me.nemo_64.betterinputs.api.util
Methods in me.nemo_64.betterinputs.api.util that return Option Modifier and Type Method Description static <T> Option<T>
Option. empty()
Returns an emptyOption
instance.Option<T>
Option. filter(Predicate<? super T> predicate)
If a value is present, and the value matches the given predicate, returns anOption
describing the value, otherwise returns an emptyOption
.<U> Option<U>
Option. flatMap(Function<? super T,? extends Option<? extends U>> mapper)
If a value is present, returns the result of applying the givenOption
-bearing mapping function to the value, otherwise returns an emptyOption
.<U> Option<U>
Option. map(Function<? super T,? extends U> mapper)
If a value is present, returns anOption
describing the result of applying the given mapping function to the value, otherwise returns an emptyOption
.static <T> Option<T>
Option. of(T value)
Returns anOption
describing the given value.Option<T>
Option. or(Supplier<? extends Option<? extends T>> supplier)
If a value is present, returns anOption
describing the value, otherwise returns anOption
produced by the supplying function.Method parameters in me.nemo_64.betterinputs.api.util with type arguments of type Option Modifier and Type Method Description <U> Option<U>
Option. flatMap(Function<? super T,? extends Option<? extends U>> mapper)
If a value is present, returns the result of applying the givenOption
-bearing mapping function to the value, otherwise returns an emptyOption
.Option<T>
Option. or(Supplier<? extends Option<? extends T>> supplier)
If a value is present, returns anOption
describing the value, otherwise returns anOption
produced by the supplying function. -
Uses of Option in me.nemo_64.betterinputs.api.util.argument
Methods in me.nemo_64.betterinputs.api.util.argument that return Option Modifier and Type Method Description Option<Object>
ArgumentMap. get(String key)
<E> Option<E>
ArgumentMap. get(String key, Class<E> type)
Option<Class<?>>
ArgumentMap. getClass(String key)
<E> Option<Class<? extends E>>
ArgumentMap. getClass(String key, Class<E> abstraction)
-