Package | Description |
---|---|
com.annimon.stream |
Modifier and Type | Method and Description |
---|---|
void |
OptionalBoolean.ifPresent(BooleanConsumer consumer)
Invokes consumer function with value if present, otherwise does nothing.
|
void |
OptionalBoolean.ifPresentOrElse(BooleanConsumer consumer,
java.lang.Runnable emptyAction)
If a value is present, performs the given action with the value,
otherwise performs the empty-based action.
|