Uses of Class
com.terheyden.value.Value1

  • Uses of Value1 in com.terheyden.value

    Methods in com.terheyden.value that return Value1
    Modifier and Type
    Method
    Description
    static <X> Value1<X>
    Value1.empty()
    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.
    <U> Value1<U>
    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.
    <D> Value1<D>
    Value2.flatReduceAll(io.vavr.CheckedFunction2<? super B,? super C,Value1<? extends D>> reducer)
    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.
    <U> Value1<U>
    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.
    static <A> Value1<A>
    ValueStack.of(A value)
    Create a new value stack with the given initial value.
    static <A> Value1<A>
    ValueStack.of(Optional<? extends A> optValue)
    Create a new value stack with the given initial value.
    static <A> Value1<A>
    ValueStack.ofNullable(A value)
    Create a new value stack with the given initial value.
    Value1.or(C useIfEmpty)
    If a value is present, returns an Value1 describing the value, otherwise returns an Value1 produced by the supplying function.
    Value1.or(Value1<? extends C> useIfEmpty)
    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.
    Value1.or(Optional<? extends C> useIfEmpty)
    If a value is present, returns an Value1 describing the value, otherwise returns an Value1 produced by the supplying function.
    <D> Value1<D>
    Value2.reduceAll(io.vavr.CheckedFunction2<? super B,? super C,? extends D> reducer)
    Reduce all values to a single stack value.
    Methods in com.terheyden.value with parameters of type Value1
    Modifier and Type
    Method
    Description
    Value1.or(Value1<? extends C> useIfEmpty)
    If a value is present, returns an Value1 describing the value, otherwise returns an Value1 produced by the supplying function.
    Value2.or(Value1<? extends C> useIfEmpty)
    If a value is present, returns an Value2 describing the value, otherwise returns an Value2 produced by the supplying function.
    Method parameters in com.terheyden.value with type arguments of type Value1
    Modifier and Type
    Method
    Description
    <D> Value1<D>
    Value2.flatReduceAll(io.vavr.CheckedFunction2<? super B,? super C,Value1<? extends D>> reducer)
    Reduce all values to a single stack value.