Index

A C E F G H I M N O P R S T U V 
All Classes and Interfaces|All Packages

A

accept(S, T) - Method in interface com.terheyden.value.CheckedConsumer2
Accept two values and perform some action.
accept(S, T) - Method in interface com.terheyden.value.Consumer2
 
and(Predicate2<? super S, ? super T>) - Method in interface com.terheyden.value.Predicate2
Returns a composed predicate that represents a short-circuiting logical AND of this predicate and another.
andOf(D) - Method in class com.terheyden.value.Value1
Adds an additional Value to track, resulting in a new Value2.
andOf(CheckedFunction1<? super C, ? extends D>) - Method in class com.terheyden.value.Value1
Uses the existing value, if present, to create a new value to track.
andOf(Optional<? extends D>) - Method in class com.terheyden.value.Value1
Adds an additional Value to track, resulting in a new Value2.
andOfNullable(D) - Method in class com.terheyden.value.Value1
Returns an Value1 describing the given value, if non-null, otherwise returns an empty Value1.
andOfNullable(CheckedFunction1<? super C, ? extends D>) - Method in class com.terheyden.value.Value1
Uses the existing value, if present, to create a new value to track.
andThen(CheckedConsumer2<? super S, ? super T>) - Method in interface com.terheyden.value.CheckedConsumer2
Returns a composed CheckedConsumer2 that performs, in sequence, this operation followed by the after operation.
andThen(Consumer2<? super S, ? super T>) - Method in interface com.terheyden.value.Consumer2
Returns a composed Consumer2 that performs, in sequence, this operation followed by the after operation.

C

checked() - Method in interface com.terheyden.value.Consumer2
 
CheckedConsumer2<S,T> - Interface in com.terheyden.value
Functional interface for accepting two values.
CheckedPredicate2<S,T> - Interface in com.terheyden.value
CheckedPredicate2 interface.
com.terheyden.value - package com.terheyden.value
Mark this entire package as @NotNull by default, including method return values, method parameters, and fields.
Consumer2<S,T> - Interface in com.terheyden.value
Consumer2 class.

E

empty() - Static method in class com.terheyden.value.Value1
Returns an empty Value1 instance.
empty() - Static method in class com.terheyden.value.Value2
Returns an empty Value2 instance.
equals(Object) - Method in class com.terheyden.value.Value1
Indicates whether some other object is "equal to" this Value1.
equals(Object) - Method in class com.terheyden.value.Value2
Indicates whether some other object is "equal to" this Value2.

F

filter(CheckedPredicate<? super C>) - Method in class com.terheyden.value.Value1
If a value is present, and the value matches the given predicate, returns an Value1 describing the value, otherwise returns an empty Value1.
filter(CheckedPredicate<? super C>) - Method in class com.terheyden.value.Value2
If a value is present, and the value matches the given predicate, returns an Value2 describing the value, otherwise returns an empty Value2.
flatMap(CheckedFunction1<? super C, ? extends Optional<? extends D>>) - Method in class com.terheyden.value.Value2
If a value is present, returns the result of applying the given Value2-bearing mapping function to the value, otherwise returns an empty Value2.
flatMap(CheckedFunction1<? super C, ? extends Optional<? extends U>>) - Method in class com.terheyden.value.Value1
If a value is present, returns the result of applying the given Value1-bearing mapping function to the value, otherwise returns an empty Value1.
flatReduceAll(CheckedFunction2<? super B, ? super C, Value1<? extends D>>) - Method in class com.terheyden.value.Value2
Reduce all values to a single stack value.

G

get() - Method in class com.terheyden.value.Value1
If a value is present, returns the value, otherwise throws NoSuchElementException.
get() - Method in class com.terheyden.value.Value2
If a value is present, returns the value, otherwise throws NoSuchElementException.

H

hashCode() - Method in class com.terheyden.value.Value1
Returns the hash code of the value, if present, otherwise 0 (zero) if no value is present.
hashCode() - Method in class com.terheyden.value.Value2
Returns the hash code of the value, if present, otherwise 0 (zero) if no value is present.

I

ifAllPresent(CheckedConsumer2<? super B, ? super C>) - Method in class com.terheyden.value.Value2
Perform the given action using all values, if present.
ifEmpty(CheckedRunnable) - Method in class com.terheyden.value.Value1
Performs the empty-based action if no value is present, otherwise does nothing.
ifEmpty(CheckedRunnable) - Method in class com.terheyden.value.Value2
Performs the empty-based action if no value is present, otherwise does nothing.
ifPresent(CheckedConsumer<? super C>) - Method in class com.terheyden.value.Value1
If a value is present, performs the given action with the value, otherwise does nothing.
ifPresent(CheckedConsumer<? super C>) - Method in class com.terheyden.value.Value2
If a value is present, performs the given action with the value, otherwise does nothing.
ifPresentOrElse(CheckedConsumer<? super C>, CheckedRunnable) - Method in class com.terheyden.value.Value1
If a value is present, performs the given action with the value, otherwise performs the given empty-based action.
ifPresentOrElse(CheckedConsumer<? super C>, CheckedRunnable) - Method in class com.terheyden.value.Value2
If a value is present, performs the given action with the value, otherwise performs the given empty-based action.
isEmpty() - Method in class com.terheyden.value.Value1
If a value is not present, returns true, otherwise false.
isEmpty() - Method in class com.terheyden.value.Value2
True if any value is null.
isPresent() - Method in class com.terheyden.value.Value1
If a value is present, returns true, otherwise false.
isPresent() - Method in class com.terheyden.value.Value2
True if all values are non-null.

M

map(CheckedFunction1<? super C, ? extends U>) - Method in class com.terheyden.value.Value1
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.
map(CheckedFunction1<? super C, ? extends U>) - Method in class com.terheyden.value.Value2
If a value is present, returns an Value2 describing (as if by #ofNullable) the result of applying the given mapping function to the value, otherwise returns an empty Value2.

N

negate() - Method in interface com.terheyden.value.CheckedPredicate2
 
negate() - Method in interface com.terheyden.value.Predicate2
Returns a predicate that represents the logical negation of this predicate.
NonnullByDefault - Annotation Interface in com.terheyden.value
Declares the following defaults for the entire package: Methods don't return null.

O

of(A) - Static method in class com.terheyden.value.ValueStack
Create a new value stack with the given initial value.
of(A, B) - Static method in class com.terheyden.value.ValueStack
Create a new value stack with the given initial values.
of(Optional<? extends A>) - Static method in class com.terheyden.value.ValueStack
Create a new value stack with the given initial value.
of(Optional<? extends A>, Optional<? extends B>) - Static method in class com.terheyden.value.ValueStack
Create a new value stack with the given initial values.
ofNullable(A) - Static method in class com.terheyden.value.ValueStack
Create a new value stack with the given initial value.
ofNullable(A, B) - Static method in class com.terheyden.value.ValueStack
Create a new value stack with the given initial values.
or(C) - Method in class com.terheyden.value.Value1
If a value is present, returns an Value1 describing the value, otherwise returns an Value1 produced by the supplying function.
or(C) - Method in class com.terheyden.value.Value2
If a value is present, returns an Value2 describing the value, otherwise returns an Value2 produced by the supplying function.
or(Predicate2<? super S, ? super T>) - Method in interface com.terheyden.value.Predicate2
Returns a composed predicate that represents a short-circuiting logical OR of this predicate and another.
or(Value1<? extends C>) - Method in class com.terheyden.value.Value1
If a value is present, returns an Value1 describing the value, otherwise returns an Value1 produced by the supplying function.
or(Value1<? extends C>) - Method in class com.terheyden.value.Value2
If a value is present, returns an Value2 describing the value, otherwise returns an Value2 produced by the supplying function.
or(CheckedFunction0<? extends Optional<? extends C>>) - Method in class com.terheyden.value.Value1
If a value is present, returns an Value1 describing the value, otherwise returns an Value1 produced by the supplying function.
or(CheckedFunction0<? extends Optional<? extends C>>) - Method in class com.terheyden.value.Value2
If a value is present, returns an Value2 describing the value, otherwise returns an Value2 produced by the supplying function.
or(CheckedFunction1<? super B, ? extends C>) - Method in class com.terheyden.value.Value2
If the last added value is empty, use the given value function along with all other present values to create a new value.
or(Optional<? extends C>) - Method in class com.terheyden.value.Value1
If a value is present, returns an Value1 describing the value, otherwise returns an Value1 produced by the supplying function.
or(Optional<? extends C>) - Method in class com.terheyden.value.Value2
If a value is present, returns an Value2 describing the value, otherwise returns an Value2 produced by the supplying function.
orElse(C) - Method in class com.terheyden.value.Value1
If a value is present, returns the value, otherwise returns other.
orElse(C) - Method in class com.terheyden.value.Value2
If a value is present, returns the value, otherwise returns other.
orElseGet(Supplier<? extends C>) - Method in class com.terheyden.value.Value1
If a value is present, returns the value, otherwise returns the result produced by the supplying function.
orElseGet(Supplier<? extends C>) - Method in class com.terheyden.value.Value2
If a value is present, returns the value, otherwise returns the result produced by the supplying function.
orElseThrow() - Method in class com.terheyden.value.Value1
If a value is present, returns the value, otherwise throws NoSuchElementException.
orElseThrow() - Method in class com.terheyden.value.Value2
If a value is present, returns the value, otherwise throws NoSuchElementException.
orElseThrow(CheckedFunction0<? extends X>) - Method in class com.terheyden.value.Value1
If a value is present, returns the value, otherwise throws an exception produced by the exception supplying function.
orElseThrow(CheckedFunction0<? extends X>) - Method in class com.terheyden.value.Value2
If a value is present, returns the value, otherwise throws an exception produced by the exception supplying function.

P

Predicate2<S,T> - Interface in com.terheyden.value
Predicate2 interface.

R

reduceAll(CheckedFunction2<? super B, ? super C, ? extends D>) - Method in class com.terheyden.value.Value2
Reduce all values to a single stack value.

S

stream() - Method in class com.terheyden.value.Value1
If a value is present, returns a sequential Stream containing only that value, otherwise returns an empty Stream.
stream() - Method in class com.terheyden.value.Value2
If a value is present, returns a sequential Stream containing only that value, otherwise returns an empty Stream.

T

test(S, T) - Method in interface com.terheyden.value.CheckedPredicate2
 
test(S, T) - Method in interface com.terheyden.value.Predicate2
 
toOptional() - Method in class com.terheyden.value.Value1
Converts the last value to a Java Optional.
toOptional() - Method in class com.terheyden.value.Value2
Converts the last value to a Java Optional.
toString() - Method in class com.terheyden.value.Value1
Returns a non-empty string representation of this Value1 suitable for debugging.
toString() - Method in class com.terheyden.value.Value2
Returns a non-empty string representation of this Value2 suitable for debugging.

U

unchecked() - Method in interface com.terheyden.value.CheckedConsumer2
 
unchecked() - Method in interface com.terheyden.value.CheckedPredicate2
 

V

Value1<C> - Class in com.terheyden.value
A stack with a single value.
Value2<B,C> - Class in com.terheyden.value
A stack of two values.
ValueStack - Class in com.terheyden.value
A value stack can collect and combine multiple values in a functional way.
A C E F G H I M N O P R S T U V 
All Classes and Interfaces|All Packages