Package org.dmfs.jems2.optional
Class Zipped<Left,Right,Result>
- java.lang.Object
-
- org.dmfs.jems2.optional.Zipped<Left,Right,Result>
-
- All Implemented Interfaces:
Optional<Result>
public final class Zipped<Left,Right,Result> extends java.lang.Object implements Optional<Result>
AnOptionalwhich combines two otherOptionals with aBiFunctionif they are both present and is absent otherwise.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisPresent()Returns whether the optional value is present.Resultvalue()Returns the optional value.
-
-
-
Method Detail
-
isPresent
public boolean isPresent()
Description copied from interface:OptionalReturns whether the optional value is present.
-
-