Class OrThrowable<T>
- java.lang.Object
-
- com.g2forge.alexandria.java.fluent.optional.AOptional<T>
-
- com.g2forge.alexandria.java.fluent.optional.AValueOptional<T>
-
- com.g2forge.alexandria.java.core.error.OrThrowable<T>
-
- All Implemented Interfaces:
IFluent__<T>
,IFluent_0<T>
,IFluent_D<T>
,IFluent1_<T>
,IFluentG_<T>
,IOptional<T>
,IFunctional
,IRunnable
,ISupplier<T>
,IThrowRunnable<RuntimeException>
,Runnable
,Supplier<T>
public class OrThrowable<T> extends AValueOptional<T>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.g2forge.alexandria.java.fluent.optional.AOptional
AOptional.FallbackOptional<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected Throwable
throwable
-
Fields inherited from class com.g2forge.alexandria.java.fluent.optional.AValueOptional
value
-
-
Constructor Summary
Constructors Constructor Description OrThrowable(Throwable throwable)
OrThrowable(T value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <U> AOptional<U>
create()
protected <U> AOptional<U>
create(U value)
T
get()
Throwable
getThrowable()
boolean
isEmpty()
-
Methods inherited from class com.g2forge.alexandria.java.fluent.optional.AOptional
create, equals, fallback, filter, flatMap, hashCode, map, or, orGet, orThrow, override, require, toString, visit
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.g2forge.alexandria.java.fluent.IFluentG_
isNotEmpty
-
Methods inherited from interface com.g2forge.alexandria.java.function.ISupplier
run, toFunction, wrap
-
-