public final class Zipped<Left,Right,Result> extends java.lang.Object implements Optional<Result>
Optional which combines two other Optionals with a BiFunction if they are both present and is absent otherwise| Constructor and Description |
|---|
Zipped(Optional<Left> left,
Optional<Right> right,
BiFunction<Left,Right,Result> function) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isPresent()
Returns whether the optional value is present.
|
Result |
value()
Returns the optional value.
|
public boolean isPresent()
Optional