Interface IOptional<T>
-
- All Superinterfaces:
IFluent__<T>
,IFluent_0<T>
,IFluent_D<T>
,IFluent1_<T>
,IFluentG_<T>
,IFunctional
,IRunnable
,ISupplier<T>
,IThrowRunnable<RuntimeException>
,Runnable
,Supplier<T>
- All Known Implementing Classes:
AOptional
,AOptional.FallbackOptional
,AValueOptional
,NonNullOptional
,NullableOptional
,OrThrowable
public interface IOptional<T> extends IFluent_D<T>, IFluent_0<T>, IFluent1_<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IOptional<T>
fallback(IOptional<? extends T> fallback)
IOptional<T>
filter(Predicate<? super T> predicate)
<U> IOptional<U>
flatMap(Function<? super T,? extends IFluent1_<U>> mapper)
<U> IOptional<U>
map(Function<? super T,? extends U> mapper)
IOptional<T>
override(IOptional<? extends T> override)
-
Methods inherited from interface com.g2forge.alexandria.java.fluent.IFluentG_
isEmpty, isNotEmpty, visit
-
Methods inherited from interface com.g2forge.alexandria.java.function.ISupplier
run, toFunction, wrap
-
-