Module com.machinezoo.noexception
Package com.machinezoo.noexception.optional
Variations of standard functional interfaces that return
Optional
instead of the raw value. They are usually obtained by calling a method on ExceptionHandler
. They can be converted to standard functional interface by calling orElse
and orElseGet
methods. See NoException tutorial.
- See Also:
-
ExceptionHandler
,Exceptions
, NoException tutorial,java.util.function
-
Interface Summary Interface Description OptionalBiFunction<T,U,R> Variation ofBiFunction
that returnsOptional
instead of the raw value.OptionalBinaryOperator<T> Variation ofBinaryOperator
that returnsOptional
instead of the raw value.OptionalBiPredicate<T,U> Variation ofBiPredicate
that returnsOptionalBoolean
instead of the raw value.OptionalBooleanSupplier Variation ofBooleanSupplier
that returnsOptionalBoolean
instead of the raw value.OptionalComparator<T> Variation ofComparator
that returnsOptionalInt
instead of the raw value.OptionalDoubleBinaryOperator Variation ofDoubleBinaryOperator
that returnsOptionalDouble
instead of the raw value.OptionalDoubleFunction<R> Variation ofDoubleFunction
that returnsOptional
instead of the raw value.OptionalDoublePredicate Variation ofDoublePredicate
that returnsOptionalBoolean
instead of the raw value.OptionalDoubleSupplier Variation ofDoubleSupplier
that returnsOptionalDouble
instead of the raw value.OptionalDoubleToIntFunction Variation ofDoubleToIntFunction
that returnsOptionalInt
instead of the raw value.OptionalDoubleToLongFunction Variation ofDoubleToLongFunction
that returnsOptionalLong
instead of the raw value.OptionalDoubleUnaryOperator Variation ofDoubleUnaryOperator
that returnsOptionalDouble
instead of the raw value.OptionalFunction<T,R> OptionalIntBinaryOperator Variation ofIntBinaryOperator
that returnsOptionalInt
instead of the raw value.OptionalIntFunction<R> Variation ofIntFunction
that returnsOptional
instead of the raw value.OptionalIntPredicate Variation ofIntPredicate
that returnsOptionalBoolean
instead of the raw value.OptionalIntSupplier Variation ofIntSupplier
that returnsOptionalInt
instead of the raw value.OptionalIntToDoubleFunction Variation ofIntToDoubleFunction
that returnsOptionalDouble
instead of the raw value.OptionalIntToLongFunction Variation ofIntToLongFunction
that returnsOptionalLong
instead of the raw value.OptionalIntUnaryOperator Variation ofIntUnaryOperator
that returnsOptionalInt
instead of the raw value.OptionalLongBinaryOperator Variation ofLongBinaryOperator
that returnsOptionalLong
instead of the raw value.OptionalLongFunction<R> Variation ofLongFunction
that returnsOptional
instead of the raw value.OptionalLongPredicate Variation ofLongPredicate
that returnsOptionalBoolean
instead of the raw value.OptionalLongSupplier Variation ofLongSupplier
that returnsOptionalLong
instead of the raw value.OptionalLongToDoubleFunction Variation ofLongToDoubleFunction
that returnsOptionalDouble
instead of the raw value.OptionalLongToIntFunction Variation ofLongToIntFunction
that returnsOptionalInt
instead of the raw value.OptionalLongUnaryOperator Variation ofLongUnaryOperator
that returnsOptionalLong
instead of the raw value.OptionalPredicate<T> Variation ofPredicate
that returnsOptionalBoolean
instead of the raw value.OptionalSupplier<T> OptionalToDoubleBiFunction<T,U> Variation ofToDoubleBiFunction
that returnsOptionalDouble
instead of the raw value.OptionalToDoubleFunction<T> Variation ofToDoubleFunction
that returnsOptionalDouble
instead of the raw value.OptionalToIntBiFunction<T,U> Variation ofToIntBiFunction
that returnsOptionalInt
instead of the raw value.OptionalToIntFunction<T> Variation ofToIntFunction
that returnsOptionalInt
instead of the raw value.OptionalToLongBiFunction<T,U> Variation ofToLongBiFunction
that returnsOptionalLong
instead of the raw value.OptionalToLongFunction<T> Variation ofToLongFunction
that returnsOptionalLong
instead of the raw value.OptionalUnaryOperator<T> Variation ofUnaryOperator
that returnsOptional
instead of the raw value. -
Class Summary Class Description OptionalBoolean A container object which may or may not contain aboolean
value.