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 ofBiFunctionthat returnsOptionalinstead of the raw value.OptionalBinaryOperator<T> Variation ofBinaryOperatorthat returnsOptionalinstead of the raw value.OptionalBiPredicate<T,U> Variation ofBiPredicatethat returnsOptionalBooleaninstead of the raw value.OptionalBooleanSupplier Variation ofBooleanSupplierthat returnsOptionalBooleaninstead of the raw value.OptionalComparator<T> Variation ofComparatorthat returnsOptionalIntinstead of the raw value.OptionalDoubleBinaryOperator Variation ofDoubleBinaryOperatorthat returnsOptionalDoubleinstead of the raw value.OptionalDoubleFunction<R> Variation ofDoubleFunctionthat returnsOptionalinstead of the raw value.OptionalDoublePredicate Variation ofDoublePredicatethat returnsOptionalBooleaninstead of the raw value.OptionalDoubleSupplier Variation ofDoubleSupplierthat returnsOptionalDoubleinstead of the raw value.OptionalDoubleToIntFunction Variation ofDoubleToIntFunctionthat returnsOptionalIntinstead of the raw value.OptionalDoubleToLongFunction Variation ofDoubleToLongFunctionthat returnsOptionalLonginstead of the raw value.OptionalDoubleUnaryOperator Variation ofDoubleUnaryOperatorthat returnsOptionalDoubleinstead of the raw value.OptionalFunction<T,R> OptionalIntBinaryOperator Variation ofIntBinaryOperatorthat returnsOptionalIntinstead of the raw value.OptionalIntFunction<R> Variation ofIntFunctionthat returnsOptionalinstead of the raw value.OptionalIntPredicate Variation ofIntPredicatethat returnsOptionalBooleaninstead of the raw value.OptionalIntSupplier Variation ofIntSupplierthat returnsOptionalIntinstead of the raw value.OptionalIntToDoubleFunction Variation ofIntToDoubleFunctionthat returnsOptionalDoubleinstead of the raw value.OptionalIntToLongFunction Variation ofIntToLongFunctionthat returnsOptionalLonginstead of the raw value.OptionalIntUnaryOperator Variation ofIntUnaryOperatorthat returnsOptionalIntinstead of the raw value.OptionalLongBinaryOperator Variation ofLongBinaryOperatorthat returnsOptionalLonginstead of the raw value.OptionalLongFunction<R> Variation ofLongFunctionthat returnsOptionalinstead of the raw value.OptionalLongPredicate Variation ofLongPredicatethat returnsOptionalBooleaninstead of the raw value.OptionalLongSupplier Variation ofLongSupplierthat returnsOptionalLonginstead of the raw value.OptionalLongToDoubleFunction Variation ofLongToDoubleFunctionthat returnsOptionalDoubleinstead of the raw value.OptionalLongToIntFunction Variation ofLongToIntFunctionthat returnsOptionalIntinstead of the raw value.OptionalLongUnaryOperator Variation ofLongUnaryOperatorthat returnsOptionalLonginstead of the raw value.OptionalPredicate<T> Variation ofPredicatethat returnsOptionalBooleaninstead of the raw value.OptionalSupplier<T> OptionalToDoubleBiFunction<T,U> Variation ofToDoubleBiFunctionthat returnsOptionalDoubleinstead of the raw value.OptionalToDoubleFunction<T> Variation ofToDoubleFunctionthat returnsOptionalDoubleinstead of the raw value.OptionalToIntBiFunction<T,U> Variation ofToIntBiFunctionthat returnsOptionalIntinstead of the raw value.OptionalToIntFunction<T> Variation ofToIntFunctionthat returnsOptionalIntinstead of the raw value.OptionalToLongBiFunction<T,U> Variation ofToLongBiFunctionthat returnsOptionalLonginstead of the raw value.OptionalToLongFunction<T> Variation ofToLongFunctionthat returnsOptionalLonginstead of the raw value.OptionalUnaryOperator<T> Variation ofUnaryOperatorthat returnsOptionalinstead of the raw value. -
Class Summary Class Description OptionalBoolean A container object which may or may not contain abooleanvalue.