Module net.anwiba.commons.lang
Package net.anwiba.commons.lang.optional
Interface IOptional<T,E extends Exception>
public interface IOptional<T,E extends Exception>
-
Method Summary
Modifier and TypeMethodDescriptionbooleanconvert(IConverter<T, O, E> converter) equals(IConverter<T, O, E> converter, O value) failed(IConverter<E, T, E> value) get()getCause()getOrThrow(IConverter<E, X, X> supplier) getOrThrow(ISupplier<X, E> supplier) instanceOf(Class<O> clazz) booleanbooleanisEmpty()boolean
-
Method Details
-
or
-
or
-
or
-
failed
-
failed
-
accept
-
consume
-
convert
-
equals
-
instanceOf
-
get
-
getObject
- Throws:
IllegalStateException
-
getCause
- Throws:
IllegalStateException
-
toOptional
-
getOrThrow
-
getOrThrow
- Throws:
X extends Exception
-
getOr
-
isAccepted
boolean isAccepted() -
isSuccessful
boolean isSuccessful() -
contains
-
isEmpty
boolean isEmpty() -
throwIfFaild
-