| Package | Description |
|---|---|
| com.annimon.stream |
| Modifier and Type | Method and Description |
|---|---|
static OptionalBoolean |
OptionalBoolean.empty()
Returns an empty
OptionalBoolean instance. |
OptionalBoolean |
OptionalBoolean.executeIfAbsent(Runnable action)
Invokes action function if value is absent.
|
OptionalBoolean |
OptionalBoolean.executeIfPresent(BooleanConsumer consumer)
Invokes consumer function with the value if present.
|
OptionalBoolean |
OptionalBoolean.filter(BooleanPredicate predicate)
Performs filtering on inner value if it is present.
|
OptionalBoolean |
OptionalBoolean.filterNot(BooleanPredicate predicate)
Performs negated filtering on inner value if it is present.
|
OptionalBoolean |
OptionalBoolean.map(BooleanPredicate mapper)
Invokes the given mapping function on inner value if present.
|
OptionalBoolean |
Optional.mapToBoolean(ToBooleanFunction<? super T> mapper)
Invokes mapping function on inner value if present.
|
static OptionalBoolean |
OptionalBoolean.of(boolean value)
Returns an
OptionalBoolean with the specified value present. |
static OptionalBoolean |
OptionalBoolean.ofNullable(Boolean value)
Returns an
OptionalBoolean with the specified value, or empty OptionalBoolean if value is null. |
OptionalBoolean |
OptionalBoolean.or(Supplier<OptionalBoolean> supplier)
Returns current
OptionalBoolean if value is present, otherwise
returns an OptionalBoolean produced by supplier function. |
| Modifier and Type | Method and Description |
|---|---|
<R> R |
OptionalBoolean.custom(Function<OptionalBoolean,R> function)
Applies custom operator on
OptionalBoolean. |
OptionalBoolean |
OptionalBoolean.or(Supplier<OptionalBoolean> supplier)
Returns current
OptionalBoolean if value is present, otherwise
returns an OptionalBoolean produced by supplier function. |
Copyright © 2018. All rights reserved.