Returns an empty Value1 instance.
Value1.filter(io.vavr.CheckedPredicate<? super C> predicate)
If a value is present, and the value matches the given predicate,
returns an Value1 describing the value, otherwise returns an
empty Value1.
Value1.flatMap(io.vavr.CheckedFunction1<? super C,? extends Optional<? extends U>> mapper)
If a value is present, returns the result of applying the given
Value1-bearing mapping function to the value, otherwise returns
an empty Value1.
Reduce all values to a single stack value.
Value1.ifEmpty(io.vavr.CheckedRunnable emptyAction)
Performs the empty-based action if no value is present, otherwise does nothing.
Value1.ifPresent(io.vavr.CheckedConsumer<? super C> action)
If a value is present, performs the given action with the value,
otherwise does nothing.
Value1.ifPresentOrElse(io.vavr.CheckedConsumer<? super C> action,
io.vavr.CheckedRunnable emptyAction)
If a value is present, performs the given action with the value,
otherwise performs the given empty-based action.
Value1.map(io.vavr.CheckedFunction1<? super C,? extends U> mapper)
If a value is present, returns an Value1 describing (as if by
#ofNullable) the result of applying the given mapping function to
the value, otherwise returns an empty Value1.
Create a new value stack with the given initial value.
Create a new value stack with the given initial value.
Create a new value stack with the given initial value.
If a value is present, returns an Value1 describing the value,
otherwise returns an Value1 produced by the supplying function.
If a value is present, returns an Value1 describing the value,
otherwise returns an Value1 produced by the supplying function.
Value1.or(io.vavr.CheckedFunction0<? extends Optional<? extends C>> supplier)
If a value is present, returns an Value1 describing the value,
otherwise returns an Value1 produced by the supplying function.
If a value is present, returns an Value1 describing the value,
otherwise returns an Value1 produced by the supplying function.
Value2.reduceAll(io.vavr.CheckedFunction2<? super B,? super C,? extends D> reducer)
Reduce all values to a single stack value.