Index
All Classes and Interfaces|All Packages
A
- allMatch(Predicate<? super T>) - Method in interface InfList
-
Returns whether all elements of this stream match the provided predicate.
- anyMatch(Predicate<? super T>) - Method in interface InfList
-
Returns whether any elements of this stream match the provided predicate.
C
- concat(InfList<? extends T>) - Method in interface InfList
-
Creates a lazily concatenated infinite list whose elements are all the elements of this list followed by all the elements of the other list.
E
F
- filter(Predicate<? super T>) - Method in interface InfList
-
Returns an infinite list consisting of the elements of this list that match the given predicate.
- filter(Predicate<? super T>) - Method in class Maybe
-
If a value is present, and the value matches the given predicate, returns an
Maybedescribing the value, otherwise returns an emptyMaybe. - findFirst() - Method in interface InfList
-
Returns an
Maybedescribing the first element of this infinite list, or an emptyMaybeif the list is empty. - flatMap(Function<? super T, ? extends InfList<? extends R>>) - Method in interface InfList
-
Returns an infinite list consisting of the results of replacing each element of this list with the contents of a mapped list produced by applying the provided mapping function to each element.
- flatMap(Function<? super T, ? extends Maybe<? extends R>>) - Method in class Maybe
-
If a value is present, returns the result of applying the given
Maybe-bearing mapping function to the value, otherwise returns an emptyMaybe. - forEach(Consumer<? super T>) - Method in interface InfList
-
Performs an action for each element of this infinite list.
I
- ifPresent(Consumer<? super T>) - Method in class Maybe
-
If a value is present, performs the given action with the value, otherwise does nothing.
- InfList<T> - Interface in Unnamed Package
-
A infinite sequence of elements supporting sequential operations.
- iterate(T, UnaryOperator<T>) - Static method in interface InfList
-
Returns an infinite sequential ordered
InfListproduced by iterative application of a functionnextto an initial elementseed, producing aInfListconsisting ofseed,next(seed),next(next(seed)), etc.
L
- limit(int) - Method in interface InfList
-
Returns an infinite list consisting of the elements of this list, truncated to be no longer than
maxSizein length.
M
- map(Function<? super T, ? extends R>) - Method in interface InfList
-
Returns an infinite list consisting of the results of applying the given function to the elements of this list.
- map(Function<? super T, ? extends R>) - Method in class Maybe
-
If a value is present, returns an
Maybedescribing the result of applying the given mapping function to the value, otherwise returns an emptyMaybe. - Maybe<T> - Class in Unnamed Package
-
A container object which may or may not contain a non-
nullvalue.
N
- noneMatch(Predicate<? super T>) - Method in interface InfList
-
Returns whether no elements of this stream match the provided predicate.
O
- of(T) - Static method in class Maybe
-
Returns an
Maybedescribing the given value, if non-null, otherwise returns an emptyMaybe. - of(T...) - Static method in interface InfList
-
Returns a sequential ordered stream whose elements are the specified values.
- or(Supplier<? extends Maybe<? extends T>>) - Method in class Maybe
-
If a value is present, returns an
Maybedescribing the value, otherwise returns anMaybeproduced by the supplying function. - orElse(T) - Method in class Maybe
-
If a value is present, returns the value, otherwise returns
other. - orElseGet(Supplier<? extends T>) - Method in class Maybe
-
If a value is present, returns the value, otherwise returns the result produced by the supplying function.
P
- Pair<T,
U> - Class in Unnamed Package -
This utility class stores two items together in a pair.
- Pair(T, U) - Constructor for class Pair
-
Creates a
Pairof items.
R
- reduce(BinaryOperator<T>) - Method in interface InfList
-
Performs a reduction on the elements of this infinite list, using a function, and returns a
Maybedescribing the reduced value, if any. - reduce(U, BiFunction<U, T, U>) - Method in interface InfList
-
Performs a reduction on the elements of this infinite list, using the provided identity value and an accumulation function, and returns the reduced value.
T
- t() - Method in class Pair
-
Returns the first item of the pair.
- takeWhile(Predicate<? super T>) - Method in interface InfList
-
Returns an infinite list consisting of the longest prefix of elements taken from this list that match the given predicate.
- toString() - Method in class Maybe
-
Returns a non-empty string representation of this
Maybesuitable for debugging. - toString() - Method in class Pair
-
Returns the string representation of the pair.
U
A C E F I L M N O P R T UAll Classes and Interfaces|All Packages