A B C D E F G H I J K L M N O P Q R S T U V W Y Z 
All Classes All Packages

A

accept(double) - Method in interface com.google.mu.function.CheckedDoubleConsumer
 
accept(int) - Method in interface com.google.mu.function.CheckedIntConsumer
 
accept(long) - Method in interface com.google.mu.function.CheckedLongConsumer
 
accept(A, B) - Method in interface com.google.mu.function.CheckedBiConsumer
 
accept(F) - Method in class com.google.mu.util.Funnel.Batch
Adds source to be converted.
accept(F, Consumer<? super T>) - Method in class com.google.mu.util.Funnel.Batch
Adds source to be converted.
accept(F, Function<? super T, ? extends T>) - Method in class com.google.mu.util.Funnel.Batch
Adds source to be converted.
accept(T) - Method in interface com.google.mu.function.CheckedConsumer
 
accumulate(C, L, R) - Method in interface com.google.mu.util.stream.BiAccumulator
 
accumulator() - Method in class com.google.mu.util.stream.Joiner
 
add(K, V) - Method in class com.google.mu.util.stream.BiStream.Builder
 
add(T) - Method in class com.google.mu.util.Funnel
Adds element to the funnel.
addToIfAbsent(String) - Method in class com.google.mu.util.Substring.Prefix
If string has this prefix, return it as-is; otherwise, return it with this prefix prepended.
addToIfAbsent(String) - Method in class com.google.mu.util.Substring.Suffix
If string has this suffix, return it as-is; otherwise, return it with this suffix appended.
addToIfAbsent(StringBuilder) - Method in class com.google.mu.util.Substring.Prefix
If builder does not already have this prefix, prepend this prefix to it.
addToIfAbsent(StringBuilder) - Method in class com.google.mu.util.Substring.Suffix
If builder does not already have this suffix, append this suffix to it.
after() - Method in class com.google.mu.util.Substring.Match
Returns the part of the original string before the matched substring.
after(Substring.Pattern) - Static method in class com.google.mu.util.Substring
Returns a Pattern that covers the substring after delimiter.
afterDelay(E) - Method in class com.google.mu.util.concurrent.Retryer.Delay
Called after the delay, immediately before the retry.
all() - Static method in interface com.google.mu.util.Selection
Returns an unlimited selection of all (unspecified) choices.
allMatch(BiPredicate<? super K, ? super V>) - Method in class com.google.mu.util.stream.BiStream
Returns true if all pairs in this stream match predicate.
allMax(Comparator<? super T>, Collector<? super T, ?, R>) - Static method in class com.google.mu.util.stream.MoreCollectors
Returns a Collector that collects all of the greatest (relative to the specified Comparator) input elements, in encounter order, using the downstream collector.
allMin(Comparator<? super T>, Collector<? super T, ?, R>) - Static method in class com.google.mu.util.stream.MoreCollectors
Returns a Collector that collects all of the least (relative to the specified Comparator) input elements, in encounter order, using the downstream collector.
ALPHA - Static variable in interface com.google.mu.util.CharPredicate
Equivalent to the [a-zA-Z] character class.
alternationFrom(String) - Method in class com.google.mu.util.Substring.RepeatingPattern
Returns the alternation of this pattern from the input string, with the matched substring alternated with the trailing substring before the next match.
and(CharPredicate) - Method in interface com.google.mu.util.CharPredicate
Returns a CharPredicate that evaluates true if both this and that predicate evaluate to true.
andThen(CheckedBiConsumer<? super A, ? super B, ? extends E>) - Method in interface com.google.mu.function.CheckedBiConsumer
Returns a new CheckedBiConsumer that also passes the inputs to that.
andThen(CheckedConsumer<? super T, E>) - Method in interface com.google.mu.function.CheckedConsumer
Returns a new CheckedConsumer that also passes the input to that.
andThen(CheckedDoubleConsumer<E>) - Method in interface com.google.mu.function.CheckedDoubleConsumer
Returns a new CheckedDoubleConsumer that also passes the input to that.
andThen(CheckedFunction<? super T, ? extends R, ? extends E>) - Method in interface com.google.mu.function.CheckedBiFunction
Returns a new CheckedBiFunction that maps the return value using mapper.
andThen(CheckedFunction<? super T, ? extends R, ? extends E>) - Method in interface com.google.mu.function.CheckedFunction
Returns a new CheckedFunction that maps the return value using mapper.
andThen(CheckedFunction<? super T, ? extends R, ? extends E>) - Method in interface com.google.mu.function.CheckedSupplier
Returns a new CheckedSupplier that maps the return value using mapper.
andThen(CheckedIntConsumer<E>) - Method in interface com.google.mu.function.CheckedIntConsumer
Returns a new CheckedIntConsumer that also passes the input to that.
andThen(CheckedLongConsumer<E>) - Method in interface com.google.mu.function.CheckedLongConsumer
Returns a new CheckedLongConsumer that also passes the input to that.
andThen(BiFunction<? super A, ? super B, T>) - Method in interface com.google.mu.util.Both
Applies the mapper function with this pair of two things as arguments.
ANY - Static variable in interface com.google.mu.util.CharPredicate
Corresponds to all characters.
anyMatch(BiPredicate<? super K, ? super V>) - Method in class com.google.mu.util.stream.BiStream
Returns true if any pair in this stream matches predicate.
append(BiStream<? extends K, ? extends V>) - Method in class com.google.mu.util.stream.BiStream
Returns a BiStream consisting of the pairs in this stream, followed by the pairs in other.
append(K, V) - Method in class com.google.mu.util.stream.BiStream
Returns a BiStream consisting of the pairs in this stream, followed by the pair of key and value.
apply(A, B) - Method in interface com.google.mu.function.CheckedBiFunction
 
apply(F) - Method in interface com.google.mu.function.CheckedFunction
 
apply(T, T, T) - Method in interface com.google.mu.function.Ternary
 
apply(T, T, T, T) - Method in interface com.google.mu.function.Quarternary
 
apply(T, T, T, T, T) - Method in interface com.google.mu.function.Quinary
 
apply(T, T, T, T, T, T) - Method in interface com.google.mu.function.Senary
 
ASCII - Static variable in interface com.google.mu.util.CharPredicate
Corresponds to the ASCII characters.
asComparator(Function<? super E, ? extends K>, Function<? super E, ? extends V>) - Method in interface com.google.mu.function.BiComparator
Returns a Comparator for type E that can be converted into a pair using the given toKey and toValue functions.
asSet(Optional<? extends T>) - Static method in class com.google.mu.util.Optionals
Returns an immutable singleton Set whose only element is the contained instance if it is present; an empty immutable Set otherwise.
averagingDouble(ToDoubleBiFunction<? super K, ? super V>) - Static method in class com.google.mu.util.stream.BiCollectors
Returns a BiCollector that produces the arithmetic mean of a double-valued function applied to the input pair.
averagingInt(ToIntBiFunction<? super K, ? super V>) - Static method in class com.google.mu.util.stream.BiCollectors
Returns a BiCollector that produces the arithmetic mean of an integer-valued function applied to the input pair.
averagingLong(ToLongBiFunction<? super K, ? super V>) - Static method in class com.google.mu.util.stream.BiCollectors
Returns a BiCollector that produces the arithmetic mean of a long-valued function applied to the input pair.

B

before() - Method in class com.google.mu.util.Substring.Match
Returns the part of the original string before the matched substring.
before(Substring.Pattern) - Static method in class com.google.mu.util.Substring
Returns a Pattern that covers the substring before delimiter.
beforeDelay(E) - Method in class com.google.mu.util.concurrent.Retryer.Delay
Called if event will be retried after the delay.
BEGINNING - Static variable in class com.google.mu.util.Substring
Pattern that matches the empty substring at the beginning of the input string.
belong(A, B, A, B) - Method in interface com.google.mu.util.stream.BiStream.Partitioner
Returns true if consecutive pair (a1, b1) and (a2, b2) belong to the same partition.
between(char, char) - Method in class com.google.mu.util.stream.Joiner
Returns an instance that wraps the join result between before and after.
between(char, char) - Static method in class com.google.mu.util.Substring
Returns a Pattern that will match the substring between the first open and the first close after it.
between(Substring.Pattern, Substring.Pattern) - Static method in class com.google.mu.util.Substring
Returns a Pattern that will match the substring between open and close.
between(CharSequence, CharSequence) - Method in class com.google.mu.util.stream.Joiner
 
between(String, String) - Static method in class com.google.mu.util.Substring
Returns a Pattern that will match the substring between the first open and the first close after it.
between(String, String) - Method in class com.google.mu.util.Substring.Pattern
Returns an otherwise equivalent pattern except it requires the matched substring be immediately preceded by the lookbehind string and immediately followed by the after string.
BiAccumulator<C,​L,​R> - Interface in com.google.mu.util.stream
Interface modeling a builder funcction that accepts two parameters.
BiCollection<L,​R> - Class in com.google.mu.util.stream
BiCollection to BiStream is like Iterable to Iterator: a re-streamable collection of pairs.
BiCollector<K,​V,​R> - Interface in com.google.mu.util.stream
Logically, a BiCollector collects "pairs of things", just as a Collector collects "things".
BiCollectors - Class in com.google.mu.util.stream
Common utilities pertaining to BiCollector.
BiComparator<K,​V> - Interface in com.google.mu.function
Similar to Comparator, but compares between two pairs of objects.
BiIteration<L,​R> - Class in com.google.mu.util.stream
Similar to Iteration, but is used to iteratively yield() pairs into a lazy BiStream.
BiIteration() - Constructor for class com.google.mu.util.stream.BiIteration
 
BinaryTreeWalker<N> - Class in com.google.mu.util.graph
Walker for binary tree topology (see Walker.inBinaryTree()).
BiOptional<A,​B> - Class in com.google.mu.util
An optional pair of values; either the pair is present with both values, or is absent with no value.
biStream(Collection<K>, Function<? super K, ? extends V>) - Static method in class com.google.mu.util.stream.BiStream
Returns a BiStream of mappings between keys and the corresponding return values of the toValue function.
biStream(Collection<T>) - Static method in class com.google.mu.util.stream.BiStream
Short-hand for from(elements, identity(), identity()).
biStream(Function<? super V, ? extends K>, Collection<V>) - Static method in class com.google.mu.util.stream.BiStream
Returns a BiStream of mappings between the key returned by the toKey function (when applied to each element of values), and the element itself.
biStream(Function<? super V, ? extends K>, Stream<V>) - Static method in class com.google.mu.util.stream.BiStream
Returns a BiStream of mappings between the key returned by the toKey function (when applied to each element of values), and the element itself.
biStream(Stream<K>, Function<? super K, ? extends V>) - Static method in class com.google.mu.util.stream.BiStream
Returns a BiStream of mappings between keys and the corresponding return values of the toValue function.
biStream(Stream<T>) - Static method in class com.google.mu.util.stream.BiStream
Short-hand for from(elements, identity(), identity()).
BiStream<K,​V> - Class in com.google.mu.util.stream
A class similar to Stream, but operating over a sequence of pairs of objects.
BiStream.Builder<K,​V> - Class in com.google.mu.util.stream
Builder for BiStream.
BiStream.Partitioner<A,​B> - Interface in com.google.mu.util.stream
A predicate used to partition a BiStream into sub-groups of consecutive pairs.
both(Optional<? extends A>, Optional<? extends B>) - Static method in class com.google.mu.util.Optionals
If a and b are present, returns a BiOptional instance containing them; otherwise returns an empty BiOptional.
both(Optional<A>, Optional<B>) - Static method in class com.google.mu.util.BiOptional
Both<A,​B> - Interface in com.google.mu.util
Represents two unrelated or loosely-related things of type A and B.
breadthFirstFrom(Iterable<? extends N>) - Method in class com.google.mu.util.graph.BinaryTreeWalker
Returns a lazy stream for breadth-first traversal from root.
breadthFirstFrom(Iterable<? extends N>) - Method in class com.google.mu.util.graph.GraphWalker
 
breadthFirstFrom(Iterable<? extends N>) - Method in class com.google.mu.util.graph.Walker
Starts from startNodes and walks in breadth-first order.
breadthFirstFrom(N...) - Method in class com.google.mu.util.graph.Walker
Starts from startNodes and walks in breadth-first order.
build() - Method in class com.google.mu.util.stream.BiStream.Builder
 
builder() - Static method in class com.google.mu.util.stream.BiStream
Returns a new BiStream.Builder.
byValue(Predicate<? super T>) - Static method in class com.google.mu.util.Maybe
Turns condition to a Predicate over Maybe.

C

cases(Collector<? super T, ?, ? extends Optional<? extends R>>...) - Static method in class com.google.mu.util.stream.Cases
Deprecated.
Combines multiple Optional-returning collector cases, to collect to the first non-empty result.
Cases - Class in com.google.mu.util.stream
Deprecated.
Use findFirstElements() and/or findOnlyElements() methods together with Optional.or(java.util.function.Supplier<? extends java.util.Optional<? extends T>>) instead.
catchException(Class<E>, CompletionStage<? extends T>) - Static method in class com.google.mu.util.Maybe
Returns a wrapper of stage that if stage failed with exception of exceptionType, that exception is caught and wrapped inside a Maybe to complete the wrapper stage normally.
catching(CheckedConsumer<? super E, ? extends X>) - Method in class com.google.mu.util.Maybe
Catches and handles exception with handler, and then skips it in the returned Stream.
characteristics() - Method in class com.google.mu.util.stream.Joiner
 
charAt(int) - Method in class com.google.mu.util.Substring.Match
charAt(int) - Method in class com.google.mu.util.Substring.Prefix
 
charAt(int) - Method in class com.google.mu.util.Substring.Suffix
 
CharPredicate - Interface in com.google.mu.util
A predicate of character.
CheckedBiConsumer<A,​B,​E extends java.lang.Throwable> - Interface in com.google.mu.function
A binary consumer that can throw checked exceptions.
CheckedBiFunction<A,​B,​T,​E extends java.lang.Throwable> - Interface in com.google.mu.function
A binary function that can throw checked exceptions.
CheckedBiPredicate<A,​B,​E extends java.lang.Throwable> - Interface in com.google.mu.function
A binary predicate that can throw checked exceptions.
CheckedConsumer<T,​E extends java.lang.Throwable> - Interface in com.google.mu.function
A consumer that can throw checked exceptions.
CheckedDoubleConsumer<E extends java.lang.Throwable> - Interface in com.google.mu.function
A double-value consumer that can throw checked exceptions.
CheckedFunction<F,​T,​E extends java.lang.Throwable> - Interface in com.google.mu.function
A function that can throw checked exceptions.
CheckedIntConsumer<E extends java.lang.Throwable> - Interface in com.google.mu.function
An int consumer that can throw checked exceptions.
CheckedLongConsumer<E extends java.lang.Throwable> - Interface in com.google.mu.function
A 64-bit long consumer that can throw checked exceptions.
CheckedRunnable<E extends java.lang.Throwable> - Interface in com.google.mu.function
 
CheckedSupplier<T,​E extends java.lang.Throwable> - Interface in com.google.mu.function
A supplier that can throw checked exceptions.
close() - Method in class com.google.mu.util.stream.BiStream
Closes any resources associated with this stream, typically used in a try-with-resources statement.
collect(A, BiAccumulator<? super A, ? super K, ? super V>) - Method in class com.google.mu.util.stream.BiStream
Performs mutable reduction, as in collect(ImmutableMap.builder(), ImmutableMap.Builder::put).
collect(BiCollector<? super K, ? super V, R>) - Method in class com.google.mu.util.stream.BiStream
Returns an object of type R that is the result of collecting the pairs in this stream using collector.
collect(BiCollector<? super K, ? super V, T>, Function<? super T, R>) - Method in class com.google.mu.util.stream.BiStream
Equivalent to collect(collectingAndThen(collector, finisher)) but helps to save syntactic noise.
collectingAndThen(BiCollector<K, V, T>, Function<? super T, ? extends R>) - Static method in class com.google.mu.util.stream.BiCollectors
Returns a BiCollector that maps the result of upstream collector using finisher.
collectingAndThen(Function<? super BiStream<K, V>, ? extends R>) - Static method in class com.google.mu.util.stream.BiCollectors
Returns a BiCollector that first collects the input pairs into a BiStream and then applies finisher on the intermediary BiStream.
com.google.mu.function - package com.google.mu.function
Provides extra function types and utilities.
com.google.mu.util - package com.google.mu.util
Some extra Java 8 utilities.
com.google.mu.util.concurrent - package com.google.mu.util.concurrent
Concurrency utilities.
com.google.mu.util.graph - package com.google.mu.util.graph
Stream-based incremental graph algorithms.
com.google.mu.util.stream - package com.google.mu.util.stream
Stream utilities.
combiner() - Method in class com.google.mu.util.stream.Joiner
 
compare(K, V, K, V) - Method in interface com.google.mu.function.BiComparator
Returns negative if (k1, v1) < (k2, v2); positive if (k1, v1) > (k2, v2); otherwise 0.
compareTo(Retryer.Delay<E>) - Method in class com.google.mu.util.concurrent.Retryer.Delay
 
compareTo(Ordinal) - Method in class com.google.mu.util.Ordinal
Compares to that according to natural order.
comparing(BiFunction<? super K, ? super V, ? extends T>) - Static method in interface com.google.mu.function.BiComparator
Returns a BiComparator that first transforms the pairs using function and then compares the result of function.
comparing(BiFunction<? super K, ? super V, ? extends T>, Comparator<? super T>) - Static method in interface com.google.mu.function.BiComparator
Returns a BiComparator that first transforms the pairs using function and then compares the result of function using the given ordering comparator.
comparingKey(Comparator<? super K>) - Static method in interface com.google.mu.function.BiComparator
Returns a BiComparator that compares the pairs by the key element of type K.
comparingKey(Function<? super K, ? extends T>) - Static method in interface com.google.mu.function.BiComparator
Returns a BiComparator that first transforms the key element of type K using function and then compares the result of function.
comparingKey(Function<? super K, ? extends T>, Comparator<? super T>) - Static method in interface com.google.mu.function.BiComparator
Returns a BiComparator that first transforms the key element of type K using function and then compares the result of function using the given ordering comparator.
comparingValue(Comparator<? super V>) - Static method in interface com.google.mu.function.BiComparator
Returns a BiComparator that compares the pairs by the value element of type V.
comparingValue(Function<? super V, ? extends T>) - Static method in interface com.google.mu.function.BiComparator
Returns a BiComparator that first transforms the value element of type V using function and then compares the result of function.
comparingValue(Function<? super V, ? extends T>, Comparator<? super T>) - Static method in interface com.google.mu.function.BiComparator
Returns a BiComparator that first transforms the value element of type V using function and then compares the result of function using the given ordering comparator.
concat(BiStream<? extends K, ? extends V>, BiStream<? extends K, ? extends V>, BiStream<? extends K, ? extends V>...) - Static method in class com.google.mu.util.stream.BiStream
Returns a BiStream of the entries from s1, s2 then rest in encounter order.
concat(Map<? extends K, ? extends V>, Map<? extends K, ? extends V>, Map<? extends K, ? extends V>...) - Static method in class com.google.mu.util.stream.BiStream
Returns a BiStream of the entries from m1, m2 then rest in encounter order.
concat(Stream<? extends BiStream<? extends K, ? extends V>>) - Static method in class com.google.mu.util.stream.BiStream
Returns a BiStream of pairs from biStreams concatenated in encounter order.
concatenating(Function<? super T, ? extends BiStream<? extends K, ? extends V>>) - Static method in class com.google.mu.util.stream.BiStream
Returns a Collector that concatenates BiStream objects derived from the input elements using the given toBiStream function.
consecutive(CharPredicate) - Static method in class com.google.mu.util.Substring
Returns a Pattern that matches the first non-empty sequence of consecutive characters identified by matcher.
count() - Method in class com.google.mu.util.stream.BiStream
Returns the count of pairs in this stream.
counting() - Static method in class com.google.mu.util.stream.BiCollectors
Returns a counting BiCollector that counts the number of input entries.
countingDistinct() - Static method in class com.google.mu.util.stream.BiCollectors
Returns a counting BiCollector that counts the number of distinct input entries according to Object.equals(java.lang.Object) for both keys and values.
crossJoining(Stream<R>) - Static method in class com.google.mu.util.stream.BiStream
Returns a Collector that will pair each input element with each element from right into a new BiStream.
CyclicGraphException - Exception in com.google.mu.util.graph
Thrown when running into any unexpected cycle during traversal.
CyclicGraphException(List<?>) - Constructor for exception com.google.mu.util.graph.CyclicGraphException
 
cyclicPath() - Method in exception com.google.mu.util.graph.CyclicGraphException
Returns the cyclic path with the last node being the entry point of the cycle.

D

Delay() - Constructor for class com.google.mu.util.concurrent.Retryer.Delay
 
delimitedBy(char) - Static method in interface com.google.mu.util.Selection
Returns a parser for Selection, using the delimiter character to delimit explicit selection elements.
delimitedBy(Substring.Pattern) - Static method in interface com.google.mu.util.Selection
Returns a parser for Selection, using the delimiter patter to delimit explicit selection elements.
detectCycleFrom(Iterable<? extends N>) - Method in class com.google.mu.util.graph.GraphWalker
Walking from startNodes, detects if the graph has any cycle.
detectCycleFrom(N...) - Method in class com.google.mu.util.graph.GraphWalker
Walking from startNodes, detects if the graph has any cycle.
dice(Spliterator<? extends T>, int) - Static method in class com.google.mu.util.stream.MoreStreams
Dices spliterator into smaller chunks each with up to maxSize elements.
dice(Stream<? extends T>, int) - Static method in class com.google.mu.util.stream.MoreStreams
Dices stream into smaller chunks each with up to maxSize elements.
distance() - Method in class com.google.mu.util.graph.ShortestPath
Returns the non-negative distance between the starting node and the last node of this path.
distinct() - Method in class com.google.mu.util.stream.BiStream
Returns a BiStream consisting of only the distinct pairs (according to Object.equals(Object) for both key and value).
duration() - Method in class com.google.mu.util.concurrent.Retryer.Delay
Returns the delay interval.

E

empty() - Static method in class com.google.mu.util.BiOptional
Returns an empty BiOptional instance.
empty() - Static method in class com.google.mu.util.stream.BiStream
Returns an empty BiStream.
END - Static variable in class com.google.mu.util.Substring
Pattern that matches the empty substring at the end of the input string.
equals(Object) - Method in class com.google.mu.util.concurrent.Retryer.Delay
 
equals(Object) - Method in class com.google.mu.util.Ordinal
 
equals(Object) - Method in interface com.google.mu.util.Selection
Returns true if obj is an equivalent Selection instance.
equals(Object) - Method in class com.google.mu.util.stream.BiCollection
 
equals(Object) - Method in class com.google.mu.util.Substring.Prefix
 
equals(Object) - Method in class com.google.mu.util.Substring.Suffix
 
except(E) - Static method in class com.google.mu.util.Maybe
Creates an exceptional Maybe for exception.
exponentialBackoff(double, int) - Method in class com.google.mu.util.concurrent.Retryer.Delay
Returns an immutable List of delays with size.

F

fibonacci(int) - Method in class com.google.mu.util.concurrent.Retryer.Delay
Returns a fibonacci list of delays of size, as in 1, 1, 2, 3, 5, 8, ... with this delay being the multiplier.
filter(BiPredicate<? super A, ? super B>) - Method in class com.google.mu.util.BiOptional
If a pair of values is present and matches predicate, return this BiOptional instance.
filter(BiPredicate<? super A, ? super B>) - Method in interface com.google.mu.util.Both
If the pair matches() condition, returns a BiOptional containing the pair, or else returns empty.
filter(BiPredicate<? super K, ? super V>) - Method in class com.google.mu.util.stream.BiStream
Filter this stream to only pairs matching predicate.
filterKeys(Predicate<? super K>) - Method in class com.google.mu.util.stream.BiStream
Filter this stream to only pairs whose key matches predicate.
filterValues(Predicate<? super V>) - Method in class com.google.mu.util.stream.BiStream
Filter this stream to only pairs whose value matches predicate.
findAny() - Method in class com.google.mu.util.stream.BiStream
Returns any pair from this stream, or BiOptional.empty() if the stream is empty.
findFirst() - Method in class com.google.mu.util.stream.BiStream
Returns the first pair from this stream, or BiOptional.empty() if the stream is empty.
findFirstElements(Collection<T>, Quarternary<? super T, ? extends R>) - Static method in class com.google.mu.util.MoreCollections
If collection has at least 4 elements, passes the first 4 elements to found function and returns the non-null result wrapped in an Optional, or else returns Optional.empty().
findFirstElements(Collection<T>, Quinary<? super T, ? extends R>) - Static method in class com.google.mu.util.MoreCollections
If collection has at least 5 elements, passes the first 5 elements to found function and returns the non-null result wrapped in an Optional, or else returns Optional.empty().
findFirstElements(Collection<T>, Senary<? super T, ? extends R>) - Static method in class com.google.mu.util.MoreCollections
If collection has at least 6 elements, passes the first 6 elements to found function and returns the non-null result wrapped in an Optional, or else returns Optional.empty().
findFirstElements(Collection<T>, Ternary<? super T, ? extends R>) - Static method in class com.google.mu.util.MoreCollections
If collection has at least 3 elements, passes the first 3 elements to found function and returns the non-null result wrapped in an Optional, or else returns Optional.empty().
findFirstElements(Collection<T>, BiFunction<? super T, ? super T, ? extends R>) - Static method in class com.google.mu.util.MoreCollections
If collection has at least two elements, passes the first two elements to found function and returns the non-null result wrapped in an Optional, or else returns Optional.empty().
findOnlyElements(Collection<T>, Quarternary<? super T, ? extends R>) - Static method in class com.google.mu.util.MoreCollections
If collection has exactly 4 elements, passes the 4 elements to found function and returns the non-null result wrapped in an Optional, or else returns Optional.empty().
findOnlyElements(Collection<T>, Quinary<? super T, ? extends R>) - Static method in class com.google.mu.util.MoreCollections
If collection has exactly 5 elements, passes the 5 elements to found function and returns the non-null result wrapped in an Optional, or else returns Optional.empty().
findOnlyElements(Collection<T>, Senary<? super T, ? extends R>) - Static method in class com.google.mu.util.MoreCollections
If collection has exactly 6 elements, passes the 6 elements to found function and returns the non-null result wrapped in an Optional, or else returns Optional.empty().
findOnlyElements(Collection<T>, Ternary<? super T, ? extends R>) - Static method in class com.google.mu.util.MoreCollections
If collection has exactly 3 elements, passes the 3 elements to found function and returns the non-null result wrapped in an Optional, or else returns Optional.empty().
findOnlyElements(Collection<T>, BiFunction<? super T, ? super T, ? extends R>) - Static method in class com.google.mu.util.MoreCollections
If collection has exactly two elements, passes the two elements to found function and returns the non-null result wrapped in an Optional, or else returns Optional.empty().
finisher() - Method in class com.google.mu.util.stream.Joiner
 
first() - Static method in class com.google.mu.util.Ordinal
Returns the first ordinal.
first(char) - Static method in class com.google.mu.util.Substring
Returns a Pattern that matches the first occurrence of character.
first(CharPredicate) - Static method in class com.google.mu.util.Substring
Returns a Pattern that matches the first character found by charMatcher.
first(String) - Static method in class com.google.mu.util.Substring
Returns a Pattern that matches the first occurrence of str.
first(Pattern) - Static method in class com.google.mu.util.Substring
Returns a Pattern that matches the first occurrence of regexPattern.
first(Pattern, int) - Static method in class com.google.mu.util.Substring
Returns a Pattern that matches the first occurrence of regexPattern and then selects the capturing group identified by group.
firstOccurrence() - Static method in class com.google.mu.util.Substring
Returns a Collector that collects the input candidate Substring.Pattern and reults in a pattern that matches whichever that occurs first in the input string.
FixedSizeCollector<T,​A,​R> - Class in com.google.mu.util.stream
A collector that expects a fixed number of input elements.
FixedSizeCollector() - Constructor for class com.google.mu.util.stream.FixedSizeCollector
 
flatMap(BiFunction<? super A, ? super B, ? extends Optional<? extends T>>) - Method in class com.google.mu.util.BiOptional
If a pair of values is present, apply the BiOptional-bearing mapper to them, and return that result.
flatMap(BiFunction<? super K, ? super V, ? extends BiStream<? extends K2, ? extends V2>>) - Method in class com.google.mu.util.stream.BiStream
Maps each pair in this stream to zero or more pairs in another BiStream.
flatMap(Function<? super T, Maybe<T2, E>>) - Method in class com.google.mu.util.Maybe
Flat maps this using f unless it wraps exception.
flatMap(Optional<T>, Function<? super T, ? extends BiOptional<? extends A, ? extends B>>) - Static method in class com.google.mu.util.BiOptional
Maps the value contained in optional to a BiOptional using mapper, or else returns empty.
flatMapBoth(Optional<A>, Optional<B>, CheckedBiFunction<? super A, ? super B, ? extends Optional<R>, E>) - Static method in class com.google.mu.util.Optionals
flatMapKeys(BiFunction<? super K, ? super V, ? extends Stream<? extends K2>>) - Method in class com.google.mu.util.stream.BiStream
Maps each key to zero or more keys of type K2.
flatMapKeys(Function<? super K, ? extends Stream<? extends K2>>) - Method in class com.google.mu.util.stream.BiStream
Maps each key to zero or more keys of type K2.
flatMapping(BiFunction<? super K, ? super V, ? extends BiStream<? extends K1, ? extends V1>>, BiCollector<K1, V1, R>) - Static method in class com.google.mu.util.stream.BiCollectors
Returns a BiCollector that first flattens the input pair using flattener and then collects the result pairs using downstream collector.
flatMapping(BiFunction<? super K, ? super V, ? extends Stream<? extends T>>, Collector<T, ?, R>) - Static method in class com.google.mu.util.stream.BiCollectors
Returns a BiCollector that first flattens the input pair using flattener and then collects the results using downstream collector.
flatMapping(Function<? super T, ? extends BiStream<? extends K, ? extends V>>, BiCollector<K, V, R>) - Static method in class com.google.mu.util.stream.MoreCollectors
Similar but slightly different than Collectors.flatMapping(java.util.function.Function<? super T, ? extends java.util.stream.Stream<? extends U>>, java.util.stream.Collector<? super U, A, R>), returns a Collector that first flattens the input stream of pairs (as opposed to single elements) and then collects the flattened pairs with the downstream BiCollector.
flatMapToDouble(BiFunction<? super K, ? super V, ? extends DoubleStream>) - Method in class com.google.mu.util.stream.BiStream
Maps a single pair to zero or more doubles.
flatMapToInt(BiFunction<? super K, ? super V, ? extends IntStream>) - Method in class com.google.mu.util.stream.BiStream
Maps a single pair to zero or more ints.
flatMapToLong(BiFunction<? super K, ? super V, ? extends LongStream>) - Method in class com.google.mu.util.stream.BiStream
Maps a single pair to zero or more longs.
flatMapToObj(BiFunction<? super K, ? super V, ? extends Stream<? extends T>>) - Method in class com.google.mu.util.stream.BiStream
Maps a single pair to zero or more objects of type T.
flatMapValues(BiFunction<? super K, ? super V, ? extends Stream<? extends V2>>) - Method in class com.google.mu.util.stream.BiStream
Maps each value to zero or more values of type V2.
flatMapValues(Function<? super V, ? extends Stream<? extends V2>>) - Method in class com.google.mu.util.stream.BiStream
Maps each value to zero or more values of type V2.
flatten(Stream<? extends Stream<? extends T>>) - Static method in class com.google.mu.util.stream.MoreStreams
Flattens streamOfStream and returns an unordered sequential stream of the nested elements.
flatteningMaps(BiCollector<K, V, R>) - Static method in class com.google.mu.util.stream.MoreCollectors
Returns a Collector that flattens the input Map entries and collects them using the downstream BiCollector.
followedBy(String) - Method in class com.google.mu.util.Substring.Pattern
Returns an otherwise equivalent pattern except it requires the matched substring not be immediately followed by the lookahead string.
forEach(BiConsumer<? super K, ? super V>) - Method in class com.google.mu.util.stream.BiStream
Performs action for each pair in this stream.
forEachOrdered(BiConsumer<? super K, ? super V>) - Method in class com.google.mu.util.stream.BiStream
Performs action for each pair in this stream, in order.
from(CharSequence) - Method in class com.google.mu.util.Substring.Pattern
Matches this pattern against string, returning the matched substring if successful, or empty() otherwise.
from(CharSequence) - Method in class com.google.mu.util.Substring.RepeatingPattern
Applies this pattern against string and returns a stream of each iteration.
from(Collection<? extends Map.Entry<? extends K, ? extends V>>) - Static method in class com.google.mu.util.stream.BiStream
Returns a BiStream of the key value pairs from entries.
from(Collection<T>, Function<? super T, ? extends K>, Function<? super T, ? extends V>) - Static method in class com.google.mu.util.stream.BiStream
Deprecated.
Use biStream(User::id, users) to create BiStream<UserId, User>, or, use biStream(users, User::getAccount) to create BiStream<User, Account>. Then use BiStream.mapKeys(java.util.function.BiFunction<? super K, ? super V, ? extends K2>) or BiStream.mapValues(java.util.function.BiFunction<? super K, ? super V, ? extends V2>) to apply further mappings.
from(Map<K, V>) - Static method in class com.google.mu.util.stream.BiStream
Returns a BiStream of the entries in map.
from(Optional<T>) - Static method in class com.google.mu.util.BiOptional
If optional is present with value v, adapts it to BiOptional containing values (v, v).
from(Stream<? extends Both<? extends K, ? extends V>>) - Static method in class com.google.mu.util.stream.BiStream
Returns a BiStream of the pairs from stream.
from(Stream<T>, Function<? super T, ? extends K>, Function<? super T, ? extends V>) - Static method in class com.google.mu.util.stream.BiStream
Deprecated.
Use biStream(User::id, users) to create BiStream<UserId, User>, or, use biStream(users, User::getAccount) to create BiStream<User, Account>. Then use BiStream.mapKeys(java.util.function.BiFunction<? super K, ? super V, ? extends K2>) or BiStream.mapValues(java.util.function.BiFunction<? super K, ? super V, ? extends V2>) to apply further mappings.
fromIndex(int) - Static method in class com.google.mu.util.Ordinal
Returns instance corresponding to the zeroBased index.
fullString() - Method in class com.google.mu.util.Substring.Match
Return the full string being matched against.
Funnel<T> - Class in com.google.mu.util
A funnel that dispatches a sequence of inputs through arbitrary batch conversions while maintaining first-in-first-out order.
Funnel() - Constructor for class com.google.mu.util.Funnel
 
Funnel.Batch<F,​T> - Class in com.google.mu.util
Holds the elements to be converted through a single batch conversion.

G

generate(T, Function<? super T, ? extends Stream<? extends T>>) - Static method in class com.google.mu.util.stream.MoreStreams
Returns a Stream produced by iterative application of step to the initial seed, producing a Stream consisting of seed, elements of step(seed), elements of step(x) for each x in step(seed), etc.
get() - Method in interface com.google.mu.function.CheckedSupplier
 
GraphWalker<N> - Class in com.google.mu.util.graph
Walker for graph topology (see Walker.inGraph()).
GraphWalker() - Constructor for class com.google.mu.util.graph.GraphWalker
 
groupConsecutive(Stream<T>, BiPredicate<? super T, ? super T>, BinaryOperator<T>) - Static method in class com.google.mu.util.stream.MoreStreams
Groups consecutive elements from stream lazily.
groupConsecutive(Stream<T>, BiPredicate<? super T, ? super T>, Collector<? super T, ?, R>) - Static method in class com.google.mu.util.stream.MoreStreams
Groups consecutive elements from stream lazily.
groupConsecutive(Stream<T>, Function<? super T, ?>, BinaryOperator<T>) - Static method in class com.google.mu.util.stream.MoreStreams
Groups consecutive elements from stream lazily.
groupConsecutive(Stream<T>, Function<? super T, ?>, Collector<? super T, ?, R>) - Static method in class com.google.mu.util.stream.MoreStreams
Groups consecutive elements from stream lazily.
groupConsecutiveBy(BiFunction<? super K, ? super V, ? extends G>, BiCollector<? super K, ? super V, R>) - Method in class com.google.mu.util.stream.BiStream
Returns a BiStream consisting of consecutive groupings from this stream.
groupConsecutiveBy(Function<? super K, ? extends G>, BinaryOperator<V>) - Method in class com.google.mu.util.stream.BiStream
Returns a lazy BiStream of the consecutive groups of pairs from this stream.
groupConsecutiveBy(Function<? super K, ? extends G>, Collector<? super V, A, ? extends R>) - Method in class com.google.mu.util.stream.BiStream
Returns a BiStream consisting of consecutive groupings from this stream.
groupConsecutiveIf(BiStream.Partitioner<? super K, ? super V>, BiCollector<? super K, ? super V, R>) - Method in class com.google.mu.util.stream.BiStream
Returns a lazy Stream of the consecutive groups of values from this stream.
groupConsecutiveIf(BiPredicate<? super K, ? super K>, BinaryOperator<V>) - Method in class com.google.mu.util.stream.BiStream
Returns a lazy Stream of the consecutive groups of values from this stream.
groupConsecutiveIf(BiPredicate<? super K, ? super K>, Collector<? super V, A, R>) - Method in class com.google.mu.util.stream.BiStream
Returns a lazy Stream of the consecutive groups of values from this stream.
groupingBy(BiFunction<? super C, ? super V, ? extends R>) - Static method in class com.google.mu.util.stream.BiCollectors
Groups input pairs by classifier and collects entries belonging to the same group into a nested BiStream.
groupingBy(BiFunction<? super K, ? super V, ? extends G>, BiCollector<? super K, ? super V, R>) - Static method in class com.google.mu.util.stream.BiCollectors
Groups input entries by classifier and collects entries belonging to the same group using groupCollector.
groupingBy(Function<? super K, ? extends G>, BinaryOperator<V>) - Static method in class com.google.mu.util.stream.BiCollectors
Groups input pairs by classifier and reduces values belonging to the same group using groupReducer.
groupingBy(Function<? super K, ? extends G>, Collector<? super V, ?, R>) - Static method in class com.google.mu.util.stream.BiCollectors
Groups input entries by classifier and collects values belonging to the same group using groupCollector.
groupingBy(Function<? super T, ? extends K>) - Static method in class com.google.mu.util.stream.BiStream
Returns a Collector that groups the input elements by classifier and collects the values mapping to the same key into a List.
groupingBy(Function<? super T, ? extends K>, Function<? super T, ? extends V>, BinaryOperator<V>) - Static method in class com.google.mu.util.stream.BiStream
Returns a Collector that groups the input elements by classifier and reduces the values mapping to the same key using mapper then reducer.
groupingBy(Function<? super T, ? extends K>, Collector<? super T, ?, V>) - Static method in class com.google.mu.util.stream.BiStream
Returns a Collector that groups the input elements by classifier and collects the values mapping to the same key using valueCollector.
groupingBy(Function<? super V, ? extends K>, BinaryOperator<V>) - Static method in class com.google.mu.util.stream.BiStream
Returns a Collector that groups the input elements by classifier and reduces the values mapping to the same key using reducer.

H

has(T) - Method in interface com.google.mu.util.Selection
Returns true if candidate is in this selection.
hashCode() - Method in class com.google.mu.util.concurrent.Retryer.Delay
 
hashCode() - Method in class com.google.mu.util.Ordinal
 
hashCode() - Method in interface com.google.mu.util.Selection
 
hashCode() - Method in class com.google.mu.util.stream.BiCollection
 
hashCode() - Method in class com.google.mu.util.Substring.Prefix
 
hashCode() - Method in class com.google.mu.util.Substring.Suffix
 

I

ifPresent(BiOptional<A, B>, CheckedBiConsumer<? super A, ? super B, E>) - Static method in class com.google.mu.util.Optionals
Runs action if the pair is present.
ifPresent(BiConsumer<? super A, ? super B>) - Method in class com.google.mu.util.BiOptional
If a pair of values is present, invoke consumer with them.
ifPresent(Consumer<? super T>) - Method in class com.google.mu.util.Maybe
Applies consumer if this is present.
ifPresent(Optional<A>, Optional<B>, CheckedBiConsumer<? super A, ? super B, E>) - Static method in class com.google.mu.util.Optionals
Invokes consumer if both left and right are present.
ifPresent(Optional<T>, CheckedConsumer<? super T, E>) - Static method in class com.google.mu.util.Optionals
Invokes consumer if optional is present.
ifPresent(OptionalDouble, CheckedDoubleConsumer<E>) - Static method in class com.google.mu.util.Optionals
Invokes consumer if optional is present.
ifPresent(OptionalInt, CheckedIntConsumer<E>) - Static method in class com.google.mu.util.Optionals
Invokes consumer if optional is present.
ifPresent(OptionalLong, CheckedLongConsumer<E>) - Static method in class com.google.mu.util.Optionals
Invokes consumer if optional is present.
ifReturns(Predicate<T>, List<? extends Retryer.Delay<? super T>>) - Method in class com.google.mu.util.concurrent.Retryer
Returns a new object that retries if the return value satisfies condition.
ifReturns(Predicate<T>, Stream<? extends Retryer.Delay<? super T>>) - Method in class com.google.mu.util.concurrent.Retryer
Returns a new object that retries if the return value satisfies condition.
in(String) - Method in class com.google.mu.util.Substring.Pattern
Matches this pattern against string, returning a Match if successful, or empty() otherwise.
inBinaryTree(UnaryOperator<N>, UnaryOperator<N>) - Static method in class com.google.mu.util.graph.Walker
Returns a BinaryTreeWalker for walking in the binary tree topology as observed by getLeft and getRight functions.
index() - Method in class com.google.mu.util.Substring.Match
Return 0-based index of this match in Substring.Match.fullString().
indexesFrom(int) - Static method in class com.google.mu.util.stream.MoreStreams
Returns an infinite Stream starting from firstIndex.
indexesFrom(long) - Static method in class com.google.mu.util.stream.MoreStreams
Returns an infinite index stream starting from firstIndex.
inGraph(Function<? super N, ? extends Stream<? extends N>>) - Static method in class com.google.mu.util.graph.Walker
Returns a Walker to walk the graph topology (possibly with cycles) as observed by the findSuccessors function, which finds successors of any given graph node.
inGraph(Function<? super N, ? extends Stream<? extends N>>, Predicate<? super N>) - Static method in class com.google.mu.util.graph.Walker
Similar to Walker.inGraph(Function), returns a Walker that can be used to traverse a graph of nodes.
inOrderFrom(Iterable<? extends N>) - Method in class com.google.mu.util.graph.BinaryTreeWalker
Returns a lazy stream for in-order traversal from roots.
inOrderFrom(N...) - Method in class com.google.mu.util.graph.BinaryTreeWalker
Returns a lazy stream for in-order traversal from roots.
intersect(Selection<T>) - Method in interface com.google.mu.util.Selection
Returns an intersection of this selection and that.
intersect(Set<? extends T>) - Method in interface com.google.mu.util.Selection
Returns an intersection of this selection and the elements from set.
into(C) - Method in interface com.google.mu.util.stream.BiAccumulator
Returns a BiConsumer that accumulates pairs into container.
inTree(Function<? super N, ? extends Stream<? extends N>>) - Static method in class com.google.mu.util.graph.Walker
Returns a Walker to walk the tree topology (no cycles) as observed by the findChildren function, which finds children of any given tree node.
inverse() - Method in class com.google.mu.util.stream.BiStream
Returns a BiStream where each pair is a pair from this stream with the key and value swapped.
is(char) - Static method in interface com.google.mu.util.CharPredicate
Returns a CharPredicate for the range of characters: [from, to].
isEmpty() - Method in interface com.google.mu.util.Selection
Returns true if this is a limited selection with zero elements included.
isIn(CharSequence) - Method in class com.google.mu.util.Substring.Prefix
Returns true if source starts with this prefix.
isIn(CharSequence) - Method in class com.google.mu.util.Substring.Suffix
Returns true if source ends with this suffix.
isNotEmpty() - Method in class com.google.mu.util.Substring.Match
Returns true if the match isn't empty.
isPresent() - Method in class com.google.mu.util.BiOptional
Returns true if the pair of values is present.
isPresent() - Method in class com.google.mu.util.Maybe
Returns true unless this is exceptional.
iterate() - Method in class com.google.mu.util.stream.BiIteration
Starts iteration over the yielded pairs.
iterate() - Method in class com.google.mu.util.stream.Iteration
Starts iteration over the yielded elements.
iterateOnce(Stream<T>) - Static method in class com.google.mu.util.stream.MoreStreams
Iterates through stream only once.
iterateThrough(Stream<? extends T>, CheckedConsumer<? super T, E>) - Static method in class com.google.mu.util.stream.MoreStreams
Iterates through stream sequentially and passes each element to consumer with exceptions propagated.
Iteration<T> - Class in com.google.mu.util.stream
Transforms eager, recursive algorithms into lazy streams.
Iteration() - Constructor for class com.google.mu.util.stream.Iteration
 
Iteration.Continuation - Interface in com.google.mu.util.stream
Encapsulates recursive iteration or a lazy block of code with side-effect.

J

join(Object, Object) - Method in class com.google.mu.util.stream.Joiner
Joins l and r together.
join(Collection<?>) - Method in class com.google.mu.util.stream.Joiner
Joins elements from collection.
Joiner - Class in com.google.mu.util.stream
A joiner (and Collector) that joins strings.

K

keys() - Method in class com.google.mu.util.stream.BiStream
Returns a Stream consisting of only the keys from each pair in this stream.

L

last(char) - Static method in class com.google.mu.util.Substring
Returns a Pattern that matches the last occurrence of character.
last(CharPredicate) - Static method in class com.google.mu.util.Substring
Returns a Pattern that matches the last character found by charMatcher.
last(String) - Static method in class com.google.mu.util.Substring
Returns a Pattern that matches the last occurrence of str.
leading(CharPredicate) - Static method in class com.google.mu.util.Substring
Returns a Pattern that matches from the beginning of the input string, a non-empty sequence of leading characters identified by matcher.
length() - Method in class com.google.mu.util.Substring.Match
Returns the length of the matched substring.
length() - Method in class com.google.mu.util.Substring.Prefix
Returns the length of this prefix.
length() - Method in class com.google.mu.util.Substring.Suffix
Returns the length of this suffix.
limit(int) - Method in class com.google.mu.util.stream.BiStream
Returns a BiStream consisting of the only the first maxSize pairs of this stream.
limit(int) - Method in class com.google.mu.util.Substring.Match
Returns an equivalent match with at most maxChars.
limit(int) - Method in class com.google.mu.util.Substring.Pattern
Returns a Pattern that's equivalent to this pattern except it only matches at most maxChars.
limited() - Method in interface com.google.mu.util.Selection
Returns the limited choices if this selection is a limited instance; Optional.empty() for unlimited instances.

M

map(BiFunction<? super A, ? super B, ? extends A2>, BiFunction<? super A, ? super B, ? extends B2>) - Method in class com.google.mu.util.BiOptional
If a pair of values is present, apply aMapper and bMapper to them, and if both results are non-null, return a new BiOptional instance containing the results.
map(BiFunction<? super A, ? super B, ? extends T>) - Method in class com.google.mu.util.BiOptional
If a pair of values is present, apply mapper to them, and if the result is non-null, return an Optional containing it.
map(BiFunction<? super K, ? super V, ? extends Both<? extends K2, ? extends V2>>) - Method in class com.google.mu.util.stream.BiStream
Returns a BiStream consisting of the result pairs of applying mapper to the pairs in this BiStream.
map(BiFunction<? super K, ? super V, ? extends K2>, BiFunction<? super K, ? super V, ? extends V2>) - Method in class com.google.mu.util.stream.BiStream
Returns a BiStream consisting of the results of applying keyMapper and valueMapper to the pairs in this BiStream.
map(Function<? super A, ? extends A2>, Function<? super B, ? extends B2>) - Method in class com.google.mu.util.BiOptional
If a pair of values is present, apply aMapper and bMapper to each respectively, and if both results are non-null, return a new BiOptional instance containing the results.
map(Function<? super T, ? extends T2>) - Method in class com.google.mu.util.Maybe
Maps this using function unless it wraps exception.
mapBoth(Optional<A>, Optional<B>, CheckedBiFunction<? super A, ? super B, ? extends R, E>) - Static method in class com.google.mu.util.Optionals
mapIfPresent(BiFunction<? super K, ? super V, ? extends BiOptional<? extends K2, ? extends V2>>) - Method in class com.google.mu.util.stream.BiStream
Returns a BiStream consisting of the results of applying mapper function to the pairs in this BiStream.
mapKeys(BiFunction<? super K, ? super V, ? extends K2>) - Method in class com.google.mu.util.stream.BiStream
Returns a BiStream of pairs whose keys are the result of applying keyMapper to the key of each pair in this BiStream, and whose values are unchanged.
mapKeys(Function<? super K, ? extends K2>) - Method in class com.google.mu.util.stream.BiStream
Maps each key to another key of type K2.
mapKeysIfPresent(BiFunction<? super K, ? super V, ? extends Optional<? extends K2>>) - Method in class com.google.mu.util.stream.BiStream
Returns a BiStream of pairs whose keys are the result of applying keyMapper to each pair in this BiStream, and whose values are unchanged.
mapKeysIfPresent(Function<? super K, ? extends Optional<? extends K2>>) - Method in class com.google.mu.util.stream.BiStream
Returns a BiStream of pairs whose keys are the result of applying keyMapper to the key of each pair in this BiStream, and whose values are unchanged.
mapKeysIfPresent(Map<? super K, ? extends K2>) - Method in class com.google.mu.util.stream.BiStream
Given keyMapping that maps the keys of type K to elements of type K2, returns a BiStream of type <K2, V>.
mapping(BiFunction<? super K, ? super V, ? extends Both<? extends K1, ? extends V1>>, BiCollector<K1, V1, R>) - Static method in class com.google.mu.util.stream.BiCollectors
Returns a BiCollector that first maps the input pair into another pair using mapper.
mapping(BiFunction<? super K, ? super V, ? extends K1>, BiFunction<? super K, ? super V, ? extends V1>, BiCollector<K1, V1, R>) - Static method in class com.google.mu.util.stream.BiCollectors
Returns a BiCollector that first maps the input pair using keyMapper and valueMapper respectively, then collects the results using downstream collector.
mapping(BiFunction<? super K, ? super V, ? extends T>, Collector<T, ?, R>) - Static method in class com.google.mu.util.stream.BiCollectors
Returns a BiCollector that first maps the input pair using mapper and then collects the results using downstream collector.
mapping(Function<? super F, ? extends T>, Collector<T, ?, T1>, Function<? super T1, ? extends R>) - Static method in class com.google.mu.util.stream.MoreCollectors
Returns a collector that uses inputMapper function to transform each input, and finally uses outputMapper to transform the output of the given collector.
mapping(Function<? super T, ? extends Both<? extends A, ? extends B>>, BiCollector<A, B, R>) - Static method in class com.google.mu.util.stream.MoreCollectors
Analogous to Collectors.mapping(), applies a mapping function to each input element before accumulation, except that the mapper function returns a pair of elements, which are then accumulated by a BiCollector.
mapToDouble(ToDoubleBiFunction<? super K, ? super V>) - Method in class com.google.mu.util.stream.BiStream
Returns a DoubleStream consisting of the results of applying mapper to the pairs in this BiStream.
mapToInt(ToIntBiFunction<? super K, ? super V>) - Method in class com.google.mu.util.stream.BiStream
Returns an IntStream consisting of the results of applying mapper to the pairs in this BiStream.
mapToLong(ToLongBiFunction<? super K, ? super V>) - Method in class com.google.mu.util.stream.BiStream
Returns a LongStream consisting of the results of applying mapper to the pairs in this BiStream.
mapToObj(BiFunction<? super K, ? super V, ? extends T>) - Method in class com.google.mu.util.stream.BiStream
Returns a Stream consisting of the results of applying mapper to each pair in this BiStream.
mapToObjIfPresent(BiFunction<? super K, ? super V, ? extends Optional<? extends T>>) - Method in class com.google.mu.util.stream.BiStream
Returns a Stream consisting of the results of applying mapper to each pair in this BiStream.
mapValues(BiFunction<? super K, ? super V, ? extends V2>) - Method in class com.google.mu.util.stream.BiStream
Maps each value to another value of type V2.
mapValues(Function<? super V, ? extends V2>) - Method in class com.google.mu.util.stream.BiStream
Maps each value to another value of type V2.
mapValuesIfPresent(BiFunction<? super K, ? super V, ? extends Optional<? extends V2>>) - Method in class com.google.mu.util.stream.BiStream
Returns a BiStream of pairs whose values are the result of applying valueMapper to each pair in this BiStream, and whose keys are unchanged.
mapValuesIfPresent(Function<? super V, ? extends Optional<? extends V2>>) - Method in class com.google.mu.util.stream.BiStream
Returns a BiStream of pairs whose values are the result of applying valueMapper to the value of each pair in this BiStream, and whose keys are unchanged.
mapValuesIfPresent(Map<? super V, ? extends V2>) - Method in class com.google.mu.util.stream.BiStream
Given valueMapping that maps values of type V to result values of type V2, returns a BiStream of type <K, V2>.
match(String) - Method in class com.google.mu.util.Substring.RepeatingPattern
Applies this pattern against string and returns a stream of each iteration.
matches(BiPredicate<? super A, ? super B>) - Method in class com.google.mu.util.BiOptional
Returns true if the pair exists and satisfies the condition predicate.
matches(BiPredicate<? super A, ? super B>) - Method in interface com.google.mu.util.Both
Returns true if the pair matches condition.
maxBy(BiComparator<? super K, ? super V>) - Static method in class com.google.mu.util.stream.BiCollectors
Returns a BiCollector that finds the maximum pair according to comparator.
maybe(CheckedBiFunction<? super A, ? super B, ? extends T, ? extends E>) - Static method in class com.google.mu.util.Maybe
Wraps function to be used for a stream of Maybe.
maybe(CheckedBiFunction<? super A, ? super B, ? extends T, ? extends E>, Class<E>) - Static method in class com.google.mu.util.Maybe
Wraps function to be used for a stream of Maybe.
maybe(CheckedFunction<? super F, ? extends T, ? extends E>, Class<E>) - Static method in class com.google.mu.util.Maybe
Wraps function to be used for a stream of Maybe.
maybe(CheckedFunction<? super F, ? extends T, E>) - Static method in class com.google.mu.util.Maybe
Wraps function to be used for a stream of Maybe.
maybe(CheckedSupplier<? extends T, ? extends E>) - Static method in class com.google.mu.util.Maybe
Invokes supplier and wraps the returned object or thrown exception in a Maybe<T, E>.
maybe(CheckedSupplier<? extends T, ? extends E>, Class<E>) - Static method in class com.google.mu.util.Maybe
Wraps supplier to be used for a stream of Maybe.
Maybe<T,​E extends java.lang.Throwable> - Class in com.google.mu.util
Class that wraps checked exceptions and tunnels them through stream operations or future graphs.
maybeStream(CheckedBiFunction<? super A, ? super B, ? extends Stream<? extends T>, ? extends E>) - Static method in class com.google.mu.util.Maybe
Wraps function that returns Stream<T> to one that returns Stream<Maybe<T, E>> with exceptions of type E wrapped.
maybeStream(CheckedBiFunction<? super A, ? super B, ? extends Stream<? extends T>, ? extends E>, Class<E>) - Static method in class com.google.mu.util.Maybe
Wraps function that returns Stream<T> to one that returns Stream<Maybe<T, E>> with exceptions of type E wrapped.
maybeStream(CheckedFunction<? super F, ? extends Stream<? extends T>, ? extends E>, Class<E>) - Static method in class com.google.mu.util.Maybe
Wraps function that returns Stream<T> to one that returns Stream<Maybe<T, E>> with exceptions of type E wrapped.
maybeStream(CheckedFunction<? super F, ? extends Stream<? extends T>, E>) - Static method in class com.google.mu.util.Maybe
Wraps function that returns Stream<T> to one that returns Stream<Maybe<T, E>> with exceptions of type E wrapped.
maybeStream(CheckedSupplier<? extends Stream<? extends T>, ? extends E>, Class<E>) - Static method in class com.google.mu.util.Maybe
Invokes supplier and wraps the returned Stream<T> or thrown exception into a stream of Maybe<T, E>.
maybeStream(CheckedSupplier<? extends Stream<? extends T>, E>) - Static method in class com.google.mu.util.Maybe
Invokes supplier and wraps the returned Stream<T> or thrown exception into a stream of Maybe<T, E>.
minBy(BiComparator<? super K, ? super V>) - Static method in class com.google.mu.util.stream.BiCollectors
Returns a BiCollector that finds the minimum pair according to comparator.
minMax(Comparator<? super T>) - Static method in class com.google.mu.util.stream.MoreCollectors
Returns a collector that collects the minimum and maximum elements from the input elements.
MoreCollections - Class in com.google.mu.util
Utilities pertaining to Collection.
MoreCollectors - Class in com.google.mu.util.stream
Static utilities pertaining to Collector in addition to relevant utilities in JDK and Guava.
MoreStreams - Class in com.google.mu.util.stream
Static utilities pertaining to Stream in addition to relevant utilities in JDK and Guava.
multipliedBy(double) - Method in class com.google.mu.util.concurrent.Retryer.Delay
Returns a new Delay with duration multiplied by multiplier.

N

natural() - Static method in class com.google.mu.util.Ordinal
Returns the infinite stream of natural ordinals starting from "1st".
next() - Method in class com.google.mu.util.Ordinal
Returns the next ordinal.
none() - Static method in interface com.google.mu.util.Selection
Returns an empty selection.
NONE - Static variable in interface com.google.mu.util.CharPredicate
Corresponds to no characters.
NONE - Static variable in class com.google.mu.util.Substring
Pattern that never matches any substring.
noneMatch(BiPredicate<? super K, ? super V>) - Method in class com.google.mu.util.stream.BiStream
Returns true if no pairs in this stream match predicate.
nonEmptyOrAll(Collection<? extends T>) - Static method in interface com.google.mu.util.Selection
Converts to Selection from legacy code where an empty collection means all.
not() - Method in interface com.google.mu.util.CharPredicate
Returns the negation of this CharPredicate.
not() - Method in class com.google.mu.util.Substring.Pattern
notBetween(String, String) - Method in class com.google.mu.util.Substring.Pattern
Returns an otherwise equivalent pattern except it requires the matched substring not be immediately preceded by the lookbehind string and immediately followed by the after string.
notFollowedBy(String) - Method in class com.google.mu.util.Substring.Pattern
Returns an otherwise equivalent pattern except it requires the matched substring not be immediately followed by the lookahead string.

O

of() - Static method in class com.google.mu.util.stream.BiCollection
Returns an empty BiCollection.
of(int) - Static method in class com.google.mu.util.Ordinal
Returns instance corresponding to the oneBased number.
of(A, B) - Static method in class com.google.mu.util.BiOptional
Returns a BiOptional containing the pair (a, b).
of(A, B) - Static method in interface com.google.mu.util.Both
Returns an instance with both a and b.
of(Duration) - Static method in class com.google.mu.util.concurrent.Retryer.Delay
Returns a Delay of duration.
of(K, V) - Static method in class com.google.mu.util.stream.BiStream
Returns a BiStream of a single pair containing key and value.
of(K, V, K, V) - Static method in class com.google.mu.util.stream.BiStream
Returns a BiStream of two pairs, containing the supplied keys and values.
of(K, V, K, V, K, V) - Static method in class com.google.mu.util.stream.BiStream
Returns a BiStream of three pairs, containing the supplied keys and values.
of(K, V, K, V, K, V, K, V) - Static method in class com.google.mu.util.stream.BiStream
Returns a BiStream of 4 pairs, containing the supplied keys and values.
of(K, V, K, V, K, V, K, V, K, V) - Static method in class com.google.mu.util.stream.BiStream
Returns a BiStream of 5 pairs, containing the supplied keys and values.
of(K, V, K, V, K, V, K, V, K, V, K, V) - Static method in class com.google.mu.util.stream.BiStream
Returns a BiStream of 6 pairs, containing the supplied keys and values.
of(K, V, K, V, K, V, K, V, K, V, K, V, K, V) - Static method in class com.google.mu.util.stream.BiStream
Returns a BiStream of 7 pairs, containing the supplied keys and values.
of(K, V, K, V, K, V, K, V, K, V, K, V, K, V, K, V) - Static method in class com.google.mu.util.stream.BiStream
Returns a BiStream of 8 pairs, containing the supplied keys and values.
of(K, V, K, V, K, V, K, V, K, V, K, V, K, V, K, V, K, V) - Static method in class com.google.mu.util.stream.BiStream
Returns a BiStream of 9 pairs, containing the supplied keys and values.
of(K, V, K, V, K, V, K, V, K, V, K, V, K, V, K, V, K, V, K, V) - Static method in class com.google.mu.util.stream.BiStream
Returns a BiStream of 10 pairs, containing the supplied keys and values.
of(L, R) - Static method in class com.google.mu.util.stream.BiCollection
Returns a BiCollection for left and right.
of(L, R, L, R) - Static method in class com.google.mu.util.stream.BiCollection
Returns a BiCollection for two pairs.
of(L, R, L, R, L, R) - Static method in class com.google.mu.util.stream.BiCollection
Returns a BiCollection for three pairs.
of(L, R, L, R, L, R, L, R) - Static method in class com.google.mu.util.stream.BiCollection
Returns a BiCollection for four pairs.
of(L, R, L, R, L, R, L, R, L, R) - Static method in class com.google.mu.util.stream.BiCollection
Returns a BiCollection for five pairs.
of(T) - Static method in class com.google.mu.util.Maybe
Creates a Maybe for value.
ofMillis(long) - Static method in class com.google.mu.util.concurrent.Retryer.Delay
Shorthand for of(Duration.ofMillis(millis)).
on(char) - Static method in class com.google.mu.util.stream.Joiner
Joining the inputs on the delimiter character
on(CharSequence) - Static method in class com.google.mu.util.stream.Joiner
Joining the inputs on the delimiter string
only(T...) - Static method in interface com.google.mu.util.Selection
Returns a selection of choices.
onlyElement() - Static method in class com.google.mu.util.stream.Cases
Deprecated.
A collector that collects the only element from the input, or else throws IllegalArgumentException.
onlyElement(Function<? super T, ? extends R>) - Static method in class com.google.mu.util.stream.MoreCollectors
Returns a collector that collects the only one element from the input and transforms it using the mapper function.
onlyElements(Quarternary<? super T, ? extends R>) - Static method in class com.google.mu.util.stream.MoreCollectors
Returns a collector that collects the only four elements from the input and transforms them using the mapper function.
onlyElements(Quinary<? super T, ? extends R>) - Static method in class com.google.mu.util.stream.MoreCollectors
Returns a collector that collects the only five elements from the input and transforms them using the mapper function.
onlyElements(Senary<? super T, ? extends R>) - Static method in class com.google.mu.util.stream.MoreCollectors
Returns a collector that collects the only six elements from the input and transforms them using the mapper function.
onlyElements(Ternary<? super T, ? extends R>) - Static method in class com.google.mu.util.stream.MoreCollectors
Returns a collector that collects the only three elements from the input and transforms them using the mapper function.
onlyElements(BiFunction<? super T, ? super T, ? extends R>) - Static method in class com.google.mu.util.stream.Cases
Deprecated.
A collector that collects the only two elements from the input and returns the result of applying the given twoElements function.
onlyElements(BiFunction<? super T, ? super T, ? extends R>) - Static method in class com.google.mu.util.stream.MoreCollectors
Returns a collector that collects the only two elements from the input and transforms them using the mapper function.
optional(boolean, T) - Static method in class com.google.mu.util.Optionals
Returns an Optional that wraps value if condition is true and value is not null, or else empty().
optionally(boolean, CheckedSupplier<? extends T, E>) - Static method in class com.google.mu.util.Optionals
Returns an Optional that wraps the nullable result from supplier if condition is true, or else empty().
Optionals - Class in com.google.mu.util
Utilities pertaining to Optional.
or(char) - Method in interface com.google.mu.util.CharPredicate
Returns a CharPredicate that evaluates true if either this predicate evaluates to true, or the character is ch.
or(CheckedSupplier<? extends Premise, E>) - Method in interface com.google.mu.util.Premise
Evaluates alternative if this premise doesn't hold.
or(CharPredicate) - Method in interface com.google.mu.util.CharPredicate
Returns a CharPredicate that evaluates true if either this or that predicate evaluate to true.
or(Substring.Pattern) - Method in class com.google.mu.util.Substring.Pattern
Returns a Pattern that falls back to using that if this fails to match.
or(Supplier<? extends BiOptional<? extends A, ? extends B>>) - Method in class com.google.mu.util.BiOptional
If a pair of values are present, return this BiOptional instance.
Ordinal - Class in com.google.mu.util
This class provides type-safe transition between 1-based Ordinal and 0-based indexes that are commonly used to index arrays and lists.
orElse(A, B) - Method in class com.google.mu.util.BiOptional
Returns the pair if present, or else returns (a, b).
orElse(CheckedFunction<? super E, ? extends T, X>) - Method in class com.google.mu.util.Maybe
Either returns the encapsulated value, or translates exception using function.
orElse(CheckedRunnable<E>) - Method in interface com.google.mu.util.Premise
Runs block if this premise doesn't hold.
orElseThrow() - Method in class com.google.mu.util.BiOptional
Ensures that the pair must be present or else throws NoSuchElementException.
orElseThrow() - Method in class com.google.mu.util.Maybe
Returns the encapsulated value or throws exception.
orElseThrow(Function<? super E, ? extends E>) - Method in class com.google.mu.util.Maybe
Either returns success value, or throws exception created by exceptionWrapper.
orElseThrow(Supplier<E>) - Method in class com.google.mu.util.BiOptional
Ensures that the pair must be present or else throws the exception returned by exceptionSupplier.
orRange(char, char) - Method in interface com.google.mu.util.CharPredicate
Returns a CharPredicate that evaluates true if either this predicate evaluates to true, or the character is in the range of [from, to].

P

parallelize(Iterator<? extends T>, Consumer<? super T>) - Method in class com.google.mu.util.concurrent.Parallelizer
Runs consumer for inputs in parallel and blocks until either all tasks have finished, or any exception is thrown upon which all pending tasks are canceled (but the method returns without waiting for the tasks to respond to cancellation).
parallelize(Iterator<? extends T>, Consumer<? super T>, long, TimeUnit) - Method in class com.google.mu.util.concurrent.Parallelizer
Runs consumer for inputs in parallel and blocks until either all tasks have finished, timeout is triggered, or any exception is thrown upon which all pending tasks are canceled (but the method returns without waiting for the tasks to respond to cancellation).
parallelize(Iterator<? extends T>, Consumer<? super T>, Duration) - Method in class com.google.mu.util.concurrent.Parallelizer
Runs consumer for inputs in parallel and blocks until either all tasks have finished, timeout is triggered, or any exception is thrown upon which all pending tasks are canceled (but the method returns without waiting for the tasks to respond to cancellation).
parallelize(Stream<? extends Runnable>) - Method in class com.google.mu.util.concurrent.Parallelizer
Runs tasks in parallel and blocks until either all tasks have finished, or any exception is thrown upon which all pending tasks are canceled (but the method returns without waiting for the tasks to respond to cancellation).
parallelize(Stream<? extends Runnable>, long, TimeUnit) - Method in class com.google.mu.util.concurrent.Parallelizer
Runs tasks in parallel and blocks uninterruptibly until either all tasks have finished, timeout is triggered, or any exception is thrown upon which all pending tasks are canceled (but the method returns without waiting for the tasks to respond to cancellation).
parallelize(Stream<? extends Runnable>, Duration) - Method in class com.google.mu.util.concurrent.Parallelizer
Runs tasks in parallel and blocks uninterruptibly until either all tasks have finished, timeout is triggered, or any exception is thrown upon which all pending tasks are canceled (but the method returns without waiting for the tasks to respond to cancellation).
parallelize(Stream<? extends T>, Consumer<? super T>) - Method in class com.google.mu.util.concurrent.Parallelizer
Runs consumer for inputs in parallel and blocks until either all tasks have finished, or any exception is thrown upon which all pending tasks are canceled (but the method returns without waiting for the tasks to respond to cancellation).
parallelize(Stream<? extends T>, Consumer<? super T>, long, TimeUnit) - Method in class com.google.mu.util.concurrent.Parallelizer
Runs consumer for inputs in parallel and blocks until either all tasks have finished, timeout is triggered, or any exception is thrown upon which all pending tasks are canceled (but the method returns without waiting for the tasks to respond to cancellation).
parallelize(Stream<? extends T>, Consumer<? super T>, Duration) - Method in class com.google.mu.util.concurrent.Parallelizer
Runs consumer for inputs in parallel and blocks until either all tasks have finished, timeout is triggered, or any exception is thrown upon which all pending tasks are canceled (but the method returns without waiting for the tasks to respond to cancellation).
Parallelizer - Class in com.google.mu.util.concurrent
An Executor-friendly, interruptible alternative to parallel streams.
Parallelizer(ExecutorService, int) - Constructor for class com.google.mu.util.concurrent.Parallelizer
Constructs a Parallelizer that runs tasks with executor.
parallelizeUninterruptibly(Iterator<? extends T>, Consumer<? super T>) - Method in class com.google.mu.util.concurrent.Parallelizer
Runs consumer for inputs in parallel and blocks uninterruptibly until either all tasks have finished, or any exception is thrown upon which all pending tasks are canceled (but the method returns without waiting for the tasks to respond to cancellation).
parallelizeUninterruptibly(Stream<? extends Runnable>) - Method in class com.google.mu.util.concurrent.Parallelizer
Runs tasks in parallel and blocks uninterruptibly until either all tasks have finished, or any exception is thrown upon which all pending tasks are canceled (but the method returns without waiting for the tasks to respond to cancellation).
parallelizeUninterruptibly(Stream<? extends T>, Consumer<? super T>) - Method in class com.google.mu.util.concurrent.Parallelizer
Runs consumer for inputs in parallel and blocks uninterruptibly until either all tasks have finished, or any exception is thrown upon which all pending tasks are canceled (but the method returns without waiting for the tasks to respond to cancellation).
parse(String) - Method in class com.google.mu.util.Selection.Parser
Parses string into a Selection of strings by treating the single '*' character as Selection.all().
parse(String, CheckedFunction<String, ? extends T, E>) - Method in class com.google.mu.util.Selection.Parser
Parses string into a Selection by treating the single '*' character as Selection.all(), and delegating to elementParser to parse each explicit selection element.
parser() - Static method in interface com.google.mu.util.Selection
Returns the default parser, using ',' as delimiter of elements.
partitioningBy(Predicate<? super T>, Collector<T, ?, R>) - Static method in class com.google.mu.util.stream.MoreCollectors
Returns a collector that partitions the incoming elements into two groups: elements that match predicate, and those that don't.
Pattern() - Constructor for class com.google.mu.util.Substring.Pattern
 
peek(Substring.Pattern) - Method in class com.google.mu.util.Substring.Pattern
peek(String) - Method in class com.google.mu.util.Substring.Pattern
peek(BiConsumer<? super A, ? super B>) - Method in class com.google.mu.util.BiOptional
Invokes consumer with the pair if present and returns this object as is.
peek(BiConsumer<? super A, ? super B>) - Method in interface com.google.mu.util.Both
Invokes consumer with this pair and returns this object as is.
peek(BiConsumer<? super K, ? super V>) - Method in class com.google.mu.util.stream.BiStream
Returns a BiStream consisting of the pairs of this stream, additionally invoking action on each pair as pairs are consumed from the resulting stream.
postOrderFrom(Iterable<? extends N>) - Method in class com.google.mu.util.graph.BinaryTreeWalker
Returns a lazy stream for post-order traversal from root.
postOrderFrom(Iterable<? extends N>) - Method in class com.google.mu.util.graph.GraphWalker
 
postOrderFrom(Iterable<? extends N>) - Method in class com.google.mu.util.graph.Walker
Starts from startNodes and walks depth first in post-order (the reverse of a topological sort).
postOrderFrom(N...) - Method in class com.google.mu.util.graph.Walker
Starts from startNodes and walks depth first in post-order (the reverse of a topological sort).
prefix(char) - Static method in class com.google.mu.util.Substring
Returns a Prefix pattern that matches strings starting with prefix.
prefix(String) - Static method in class com.google.mu.util.Substring
Returns a Prefix pattern that matches strings starting with prefix.
Premise - Interface in com.google.mu.util
Result of a previously evaluated condition.
preOrderFrom(Iterable<? extends N>) - Method in class com.google.mu.util.graph.BinaryTreeWalker
Returns a lazy stream for pre-order traversal from roots.
preOrderFrom(Iterable<? extends N>) - Method in class com.google.mu.util.graph.GraphWalker
 
preOrderFrom(Iterable<? extends N>) - Method in class com.google.mu.util.graph.Walker
Starts from startNodes and walks depth first in pre-order.
preOrderFrom(N...) - Method in class com.google.mu.util.graph.Walker
Starts from startNodes and walks depth first in pre-order.

Q

Quarternary<T,​R> - Interface in com.google.mu.function
A 4-arg function of the signature of (T, T, T, T) -> R.
Quinary<T,​R> - Interface in com.google.mu.function
A 5-arg function of the signature of (T, T, T, T, T) -> R.

R

randomized(Random, double) - Method in class com.google.mu.util.concurrent.Retryer.Delay
Returns a new Delay with some extra randomness.
range(char, char) - Static method in interface com.google.mu.util.CharPredicate
Returns a CharPredicate for the range of characters: [from, to].
remove() - Method in class com.google.mu.util.Substring.Match
Returns a copy of the original string with the matched substring removed.
removeAllFrom(String) - Method in class com.google.mu.util.Substring.RepeatingPattern
Returns a new string with all matches of this pattern removed.
removeFrom(String) - Method in class com.google.mu.util.Substring.Pattern
Matches this pattern against string, and returns a copy with the matched substring removed if successful.
removeFrom(StringBuilder) - Method in class com.google.mu.util.Substring.Prefix
Removes this prefix from builder if it starts with the prefix.
removeFrom(StringBuilder) - Method in class com.google.mu.util.Substring.Suffix
Removes this suffix from builder if it ends with the suffix.
repeat(Function<? super I, ? extends O>, I, BiFunction<? super I, ? super O, ? extends Optional<? extends I>>) - Static method in class com.google.mu.util.stream.BiStream
Returns a stream of the inputs and outputs from repeated applications of the work function.
repeatedly() - Method in class com.google.mu.util.Substring.Pattern
Returns a Substring.RepeatingPattern that applies this pattern repeatedly against the input string.
replaceAllFrom(String, Function<? super Substring.Match, ? extends CharSequence>) - Method in class com.google.mu.util.Substring.RepeatingPattern
Returns a new string with all matches of this pattern replaced by applying replacementFunction for each match.
replaceFrom(StringBuilder, CharSequence) - Method in class com.google.mu.util.Substring.Prefix
Replaces this prefix from builder with replacement if it starts with the prefix.
replaceFrom(StringBuilder, CharSequence) - Method in class com.google.mu.util.Substring.Suffix
Replaces this suffix from builder with replacement if it ends with the suffix.
replaceFrom(String, CharSequence) - Method in class com.google.mu.util.Substring.Pattern
Returns a new string with the substring matched by this replaced by replacement.
replaceWith(CharSequence) - Method in class com.google.mu.util.Substring.Match
Returns a copy of the original string with the matched substring replaced with replacement.
retry(CheckedSupplier<? extends R, E>, ScheduledExecutorService) - Method in class com.google.mu.util.concurrent.Retryer.ForReturnValue
Invokes and possibly retries supplier according to the retry strategies specified with uponReturn().
retry(CheckedSupplier<T, ?>, ScheduledExecutorService) - Method in class com.google.mu.util.concurrent.Retryer
Invokes and possibly retries supplier upon exceptions, according to the retry strategies specified with upon().
retryAsync(CheckedSupplier<? extends CompletionStage<R>, E>, ScheduledExecutorService) - Method in class com.google.mu.util.concurrent.Retryer.ForReturnValue
Invokes and possibly retries asyncSupplier according to the retry strategies specified with uponReturn().
retryAsync(CheckedSupplier<? extends CompletionStage<T>, ?>, ScheduledExecutorService) - Method in class com.google.mu.util.concurrent.Retryer
Invokes and possibly retries asyncSupplier upon exceptions, according to the retry strategies specified with upon().
retryBlockingly(CheckedSupplier<R, E>) - Method in class com.google.mu.util.concurrent.Retryer.ForReturnValue
Invokes and possibly retries supplier according to the retry strategies specified with uponReturn().
retryBlockingly(CheckedSupplier<T, E>) - Method in class com.google.mu.util.concurrent.Retryer
Invokes and possibly retries supplier upon exceptions, according to the retry strategies specified with upon().
Retryer - Class in com.google.mu.util.concurrent
Immutable object that retries actions upon exceptions.
Retryer() - Constructor for class com.google.mu.util.concurrent.Retryer
Constructs an empty Retryer.
Retryer.Delay<E> - Class in com.google.mu.util.concurrent
Represents a delay upon an event of type E prior to the retry attempt.
Retryer.ForReturnValue<T> - Class in com.google.mu.util.concurrent
Retries based on return values.
reversed() - Method in interface com.google.mu.function.BiComparator
Returns a BiComparator that reverses the order specified by this comparator.
run() - Method in interface com.google.mu.function.CheckedRunnable
 
run() - Method in class com.google.mu.util.Funnel
Runs all batch conversions and returns conversion results together with elements added as is, in encounter order.
run() - Method in interface com.google.mu.util.stream.Iteration.Continuation
Runs the continuation.

S

Selection<T> - Interface in com.google.mu.util
An immutable selection of choices supporting both limited and unlimited selections.
Selection.Parser - Class in com.google.mu.util
Parser for Selection.
Senary<T,​R> - Interface in com.google.mu.function
A 6-arg function of the signature of (T, T, T, T, T, T) -> R.
separatedBy(CharPredicate) - Method in class com.google.mu.util.Substring.Pattern
Returns an otherwise equivalent Pattern, except it only matches if it's next to the beginning of the string, the end of the string, or the separator character(s).
separatedBy(CharPredicate, CharPredicate) - Method in class com.google.mu.util.Substring.Pattern
Returns an otherwise equivalent Pattern, except it requires the beginning of the match must either be the beginning of the string, or be separated from the rest of the string by the separatorBefore character; and the end of the match must either be the end of the string, or be separated from the rest of the string by the separatorAfter character.
ShortestPath<N> - Class in com.google.mu.util.graph
The Dijkstra shortest path algorithm implemented as a lazy, incrementally-computed stream.
shortestPathsFrom(N, Function<? super N, ? extends BiStream<? extends N, Double>>) - Static method in class com.google.mu.util.graph.ShortestPath
Returns a lazy stream of shortest paths starting from startNode.
size() - Method in class com.google.mu.util.stream.BiCollection
Returns the size of the collection.
skip(int) - Method in class com.google.mu.util.stream.BiStream
Returns a BiStream consisting of the remaining pairs from this stream, after discarding the first n pairs.
skip(int, int) - Method in class com.google.mu.util.Substring.Match
Returns a new instance that's otherwise equivalent except with fromBeginning characters skipped from the beginning and fromEnd characters skipped from the end.
skip(int, int) - Method in class com.google.mu.util.Substring.Pattern
Returns a Pattern that's equivalent to this pattern except it will skip up to fromBeginnings characters from the beginning of the match and up to fromEnd characters from the end of the match.
skipEmpties() - Method in class com.google.mu.util.stream.Joiner
Returns a Collector that skips null and empty string inputs and joins the remaining using this Joiner.
skipIf(BiPredicate<? super K, ? super V>) - Method in class com.google.mu.util.stream.BiStream
Filter this stream to exclude pairs matching predicate.
skipKeysIf(Predicate<? super K>) - Method in class com.google.mu.util.stream.BiStream
Filter this stream to exclude pairs whose key matches predicate.
skipNulls() - Method in class com.google.mu.util.stream.Joiner
Returns a Collector that skips null inputs and joins the remaining using this Joiner.
skipValuesIf(Predicate<? super V>) - Method in class com.google.mu.util.stream.BiStream
Filter this stream to exclude pairs whose value matches predicate.
sorted(BiComparator<? super K, ? super V>) - Method in class com.google.mu.util.stream.BiStream
Returns a BiStream consisting of the pairs in this stream, in the order produced by applying ordering BiComparator between each pair.
sortedByKeys(Comparator<? super K>) - Method in class com.google.mu.util.stream.BiStream
Returns a BiStream consisting of the pairs in this stream, in the order produced by applying comparator on the keys of each pair.
sortedByValues(Comparator<? super V>) - Method in class com.google.mu.util.stream.BiStream
Returns a BiStream consisting of the pairs in this stream, in the order produced by applying comparator on the values of each pair.
spanningInOrder(String, String, String...) - Static method in class com.google.mu.util.Substring
Returns a Pattern that matches the first occurrence of stop1, followed by an occurrence of stop2, followed sequentially by occurrences of moreStops in order, including any characters between consecutive stops.
split(CharSequence) - Method in class com.google.mu.util.Substring.Pattern
Splits string into two parts that are separated by this separator pattern.
split(String) - Method in class com.google.mu.util.Substring.RepeatingPattern
Returns a stream of Match objects delimited by every match of this pattern.
splitKeyValuesAround(Substring.Pattern, String) - Method in class com.google.mu.util.Substring.RepeatingPattern
Returns a BiStream of key value pairs from input.
splitThenTrim(CharSequence) - Method in class com.google.mu.util.Substring.Pattern
Splits string into two parts that are separated by this separator pattern, with leading and trailing whitespaces trimmed.
splitThenTrim(String) - Method in class com.google.mu.util.Substring.RepeatingPattern
Returns a stream of Match objects delimited by every match of this pattern.
splitThenTrimKeyValuesAround(Substring.Pattern, String) - Method in class com.google.mu.util.Substring.RepeatingPattern
Returns a BiStream of key value pairs from input.
splitting(Function<E, K>, Function<E, V>) - Method in interface com.google.mu.util.stream.BiCollector
Returns a Collector that will first split the input elements using toKey and toValue and subsequently collect the bisected parts through this BiCollector.
stream() - Method in class com.google.mu.util.BiOptional
Returns a BiStream view of this BiOptional.
stream() - Method in class com.google.mu.util.graph.ShortestPath
Returns all nodes from the starting node along this path, with the cumulative distances from the starting node up to each node in the stream, respectively.
stream() - Method in class com.google.mu.util.stream.BiCollection
Streams over this BiCollection.
stronglyConnectedComponentsFrom(Iterable<? extends N>) - Method in class com.google.mu.util.graph.GraphWalker
Walks the graph by starting from startNodes, and returns a lazy stream of strongly connected components found in the graph.
stronglyConnectedComponentsFrom(N...) - Method in class com.google.mu.util.graph.GraphWalker
Walks the graph by starting from startNodes, and returns a lazy stream of strongly connected components found in the graph.
subSequence(int, int) - Method in class com.google.mu.util.Substring.Match
Returns a CharSequence instance which is a sub-range of this Match.
subSequence(int, int) - Method in class com.google.mu.util.Substring.Prefix
 
subSequence(int, int) - Method in class com.google.mu.util.Substring.Suffix
 
Substring - Class in com.google.mu.util
Utilities for creating patterns that attempt to match a substring in an input string.
Substring.Match - Class in com.google.mu.util
The result of successfully matching a Substring.Pattern against a string, providing access to the matched substring, to the parts of the string before and after it, and to copies with the matched substring removed or replaced.
Substring.Pattern - Class in com.google.mu.util
A pattern that can be matched against a string, finding a single substring from it.
Substring.Prefix - Class in com.google.mu.util
Substring.RepeatingPattern - Class in com.google.mu.util
A substring pattern to be applied repeatedly on the input string, each time over the remaining substring after the previous match.
Substring.Suffix - Class in com.google.mu.util
suffix(char) - Static method in class com.google.mu.util.Substring
Returns a Suffix pattern that matches strings ending with suffix.
suffix(String) - Static method in class com.google.mu.util.Substring
Returns a Suffix pattern that matches strings ending with suffix.
summarizingDouble(ToDoubleBiFunction<? super K, ? super V>) - Static method in class com.google.mu.util.stream.BiCollectors
Returns a BiCollector which applies an double-producing mapping function to each input pair, and returns summary statistics for the resulting values.
summarizingInt(ToIntBiFunction<? super K, ? super V>) - Static method in class com.google.mu.util.stream.BiCollectors
Returns a BiCollector which applies an int-producing mapping function to each input pair, and returns summary statistics for the resulting values.
summarizingLong(ToLongBiFunction<? super K, ? super V>) - Static method in class com.google.mu.util.stream.BiCollectors
Returns a BiCollector which applies an long-producing mapping function to each input pair, and returns summary statistics for the resulting values.
summingDouble(ToDoubleBiFunction<? super K, ? super V>) - Static method in class com.google.mu.util.stream.BiCollectors
Returns a BiCollector that produces the sum of a double-valued function applied to the input pair.
summingInt(ToIntBiFunction<? super K, ? super V>) - Static method in class com.google.mu.util.stream.BiCollectors
Returns a BiCollector that produces the sum of an integer-valued function applied to the input pair.
summingLong(ToLongBiFunction<? super K, ? super V>) - Static method in class com.google.mu.util.stream.BiCollectors
Returns a BiCollector that produces the sum of a long-valued function applied to the input pair.
supplier() - Method in class com.google.mu.util.stream.Joiner
 
switching(FixedSizeCollector<T, ?, R>, FixedSizeCollector<T, ?, R>...) - Static method in class com.google.mu.util.stream.MoreCollectors
Returns a Collector that will collect the input elements using the first of [firstCase, moreCases...] that matches the input elements.
switching(Collector<? super T, ?, ? extends Optional<? extends R>>...) - Static method in class com.google.mu.util.stream.Cases

T

Ternary<T,​R> - Interface in com.google.mu.function
A 3-arg function of the signature of (T, T, T) -> R.
test(char) - Method in interface com.google.mu.util.CharPredicate
Returns true if ch satisfies this predicate.
test(A, B) - Method in interface com.google.mu.function.CheckedBiPredicate
 
then(BiComparator<? super K2, ? super V2>) - Method in interface com.google.mu.function.BiComparator
Returns a BiComparator that upon comparing two pairs, if this BiComparator returns 0 (tie), delegates to the secondary BiComparator for tie-break.
then(Substring.Pattern) - Method in class com.google.mu.util.Substring.Pattern
Similar to regex lookahead, returns a pattern that matches the following pattern after it has matched this pattern.
through(Function<? super List<F>, ? extends Collection<? extends T>>) - Method in class com.google.mu.util.Funnel
Returns a Funnel.Batch accepting elements that, when Funnel.run() is called, will be converted together in a batch through converter.
timed(List<T>) - Method in class com.google.mu.util.concurrent.Retryer.Delay
Returns a view of list that while not modifiable, will become empty when Retryer.Delay.duration() has elapsed since the time the view was created as if another thread had just concurrently removed all elements from it.
timed(List<T>, Clock) - Method in class com.google.mu.util.concurrent.Retryer.Delay
Returns a view of list that while not modifiable, will become empty when Retryer.Delay.duration() has elapsed since the time the view was created as if another thread had just concurrently removed all elements from it.
to() - Method in class com.google.mu.util.graph.ShortestPath
returns the last node of this path.
toAdjacentPairs() - Static method in class com.google.mu.util.stream.BiStream
Returns a Collector that accumulates every neighboring pair of elements into a new BiStream.
toBiCollection(Function<? super T, ? extends L>, Function<? super T, ? extends R>) - Static method in class com.google.mu.util.stream.BiCollection
Returns a Collector that extracts the pairs from the input stream, and then collects them into a BiCollection.
toBiStream() - Static method in class com.google.mu.util.stream.BiStream
Returns a Collector that copies each input element as a pair of itself into an equivalent BiStream.
toBiStream(Function<? super E, ? extends Both<? extends K, ? extends V>>) - Static method in class com.google.mu.util.stream.BiStream
Returns a Collector that splits each input element as a pair and collects them into a BiStream.
toBiStream(Function<? super E, ? extends K>, Function<? super E, ? extends V>) - Static method in class com.google.mu.util.stream.BiStream
Returns a Collector that splits each input element as a pair and collects them into a BiStream.
toEnd() - Method in class com.google.mu.util.Substring.Pattern
Returns a Pattern that will match from the substring matched by this to the end of the input string.
toIndex() - Method in class com.google.mu.util.Ordinal
Returns the 0-based index, such that "1st" will map to 0, thus can be used to read and write elements in arrays and lists.
toIntersection() - Static method in interface com.google.mu.util.Selection
Returns a collector that intersects the input selections.
toListAndThen(Consumer<? super List<T>>) - Static method in class com.google.mu.util.stream.MoreCollectors
Returns a collector that collects input elements into a list, which is then arranged by the arranger function before being wrapped as immutable list result.
toMap() - Static method in class com.google.mu.util.stream.BiCollectors
Returns a BiCollector that collects the key-value pairs into an immutable Map.
toMap() - Method in class com.google.mu.util.stream.BiStream
Returns an immutable Map that is the result of collecting the pairs in this stream.
toMap(BinaryOperator<V>) - Static method in class com.google.mu.util.stream.BiCollectors
Returns a BiCollector that collects the key-value pairs into an immutable Map using valueMerger to merge values of duplicate keys.
toMap(Function<? super T, ? extends K>, Function<? super T, ? extends V>, Supplier<? extends M>) - Static method in class com.google.mu.util.stream.MoreCollectors
Returns a Collector that extracts the keys and values through the given keyFunction and valueFunction respectively, and then collects them into a mutable Map created by mapSupplier.
toMap(Supplier<? extends M>) - Static method in class com.google.mu.util.stream.BiCollectors
Returns a BiCollector that collects the key-value pairs into a mutable Map created by mapSupplier.
toMap(Collector<V1, ?, V>) - Static method in class com.google.mu.util.stream.BiCollectors
Returns a BiCollector that collects the key-value pairs into an immutable Map using valueCollector to collect values of identical keys into a final value of type V.
topLevelGroups(Pattern) - Static method in class com.google.mu.util.Substring
Returns a repeating pattern representing all the top-level groups from regexPattern.
topologicalOrderFrom(Iterable<? extends N>) - Method in class com.google.mu.util.graph.GraphWalker
Fully traverses the graph by starting from startNodes, and returns an immutable list of nodes in topological order.
topologicalOrderFrom(N...) - Method in class com.google.mu.util.graph.GraphWalker
Fully traverses the graph by starting from startNodes, and returns an immutable list of nodes in topological order.
toSelection() - Static method in interface com.google.mu.util.Selection
Returns a collector that collects input elements into a limited selection.
toString() - Method in class com.google.mu.util.concurrent.Retryer.Delay
 
toString() - Method in class com.google.mu.util.graph.ShortestPath
 
toString() - Method in class com.google.mu.util.Ordinal
Returns the string representation of this ordinal.
toString() - Method in interface com.google.mu.util.Selection
Returns "ALL" if unlimited, or else returns the string representation of the set of the explicit choices.
toString() - Method in class com.google.mu.util.stream.BiCollection
 
toString() - Method in class com.google.mu.util.Substring.Match
Returns the matched substring.
toString() - Method in class com.google.mu.util.Substring.Pattern
Do not depend on the string representation of Substring, except for subtypes Substring.Prefix and Substring.Suffix that have an explicitly defined representation.
toString() - Method in class com.google.mu.util.Substring.Prefix
Returns this prefix string.
toString() - Method in class com.google.mu.util.Substring.Suffix
Returns this suffix string.
toUnion() - Static method in interface com.google.mu.util.Selection
Returns a collector that unions the input selections.
trailing(CharPredicate) - Static method in class com.google.mu.util.Substring
Returns a Pattern that matches from the end of the input string, a non-empty sequence of trailing characters identified by matcher.

U

union(Selection<T>) - Method in interface com.google.mu.util.Selection
Returns an union of this selection and that.
union(Set<? extends T>) - Method in interface com.google.mu.util.Selection
Returns a union of this selection and the elements from set.
unweightedShortestPathsFrom(N, Function<? super N, ? extends Stream<? extends N>>) - Static method in class com.google.mu.util.graph.ShortestPath
Returns a lazy stream of unweighted shortest paths starting from startNode.
upon(Class<E>, Predicate<? super E>, List<? extends Retryer.Delay<? super E>>) - Method in class com.google.mu.util.concurrent.Retryer
Returns a new Retryer that uses delays when an exception is instance of exceptionType and satisfies condition.
upon(Class<E>, Predicate<? super E>, Stream<? extends Retryer.Delay<? super E>>) - Method in class com.google.mu.util.concurrent.Retryer
Returns a new Retryer that uses delays when an exception is instance of exceptionType and satisfies condition.
upon(Class<E>, List<? extends Retryer.Delay<? super E>>) - Method in class com.google.mu.util.concurrent.Retryer
Returns a new Retryer that uses delays when an exception is instance of exceptionType.
upon(Class<E>, Stream<? extends Retryer.Delay<? super E>>) - Method in class com.google.mu.util.concurrent.Retryer
Returns a new Retryer that uses delays when an exception is instance of exceptionType.
uponReturn(T, List<? extends Retryer.Delay<? super T>>) - Method in class com.google.mu.util.concurrent.Retryer
Returns a new object that retries if the function returns returnValue.
uponReturn(T, Stream<? extends Retryer.Delay<? super T>>) - Method in class com.google.mu.util.concurrent.Retryer
Returns a new object that retries if the function returns returnValue.
upToIncluding(Substring.Pattern) - Static method in class com.google.mu.util.Substring
Returns a Pattern that will match from the beginning of the original string up to the substring matched by pattern inclusively.

V

values() - Method in class com.google.mu.util.stream.BiStream
Returns a Stream consisting of only the values from each pair in this stream.

W

Walker<N> - Class in com.google.mu.util.graph
Implements generic graph and tree traversal algorithms (pre-order, post-order and breadth-first) as lazily evaluated streams, allowing infinite-size graphs.
when(BiFunction<? super T, ? super T, ? extends R>) - Static method in class com.google.mu.util.stream.Cases
Deprecated.
A collector that wraps the result of applying the onlyTwo function in an Optional when the input has only two elements; or else returns Optional.empty().
when(BiPredicate<? super T, ? super T>, BiFunction<? super T, ? super T, ? extends R>) - Static method in class com.google.mu.util.stream.Cases
Deprecated.
A collector that wraps the result of applying the onlyTwo function in an Optional when the input has only two elements and the two elements satify condition in terms of BiPredicate.test(T, U); or else returns Optional.empty().
when(Function<? super T, ? extends R>) - Static method in class com.google.mu.util.stream.Cases
Deprecated.
A collector that wraps the result of applying the onlyOne function in an Optional when the input has only one element; or else returns Optional.empty().
when(Predicate<? super T>, Function<? super T, ? extends R>) - Static method in class com.google.mu.util.stream.Cases
Deprecated.
A collector that wraps the result of applying the onlyOne function in an Optional when the input has only one element and it satisfies condition in terms of Predicate.test(T); or else returns Optional.empty().
when(Supplier<? extends R>) - Static method in class com.google.mu.util.stream.Cases
Deprecated.
A collector that wraps the result of noElement.get() in an Optional when the input is empty; or else returns Optional.empty().
whileNotNull(Supplier<? extends T>) - Static method in class com.google.mu.util.stream.MoreStreams
Similar to Stream.generate(java.util.function.Supplier<? extends T>), returns an infinite, sequential, ordered, and non-null stream where each element is generated by the provided Supplier.
withBoundary(CharPredicate) - Method in class com.google.mu.util.Substring.Pattern
withBoundary(CharPredicate, CharPredicate) - Method in class com.google.mu.util.Substring.Pattern
withSideEffect(Stream<T>, Consumer<? super T>) - Static method in class com.google.mu.util.stream.MoreStreams
Returns a sequential stream with sideEfect attached on every element.
word() - Static method in class com.google.mu.util.Substring
Returns a Pattern that matches the first occurrence of a word composed of [a-zA-Z0-9_] characters.
word(String) - Static method in class com.google.mu.util.Substring
Returns a Pattern that matches the first occurrence of word that isn't immediately preceded or followed by another "word" ([a-zA-Z0-9_]) character.
WORD - Static variable in interface com.google.mu.util.CharPredicate
Equivalent to the [a-zA-Z0-9_] character class.

Y

yield(Iteration.Continuation) - Method in class com.google.mu.util.stream.BiIteration
Yields to the result BiStream a recursive iteration or lazy side-effect wrapped in continuation.
yield(Iteration.Continuation) - Method in class com.google.mu.util.stream.Iteration
Yields to the stream a recursive iteration or lazy side-effect wrapped in continuation.
yield(Supplier<? extends T>, Consumer<? super T>) - Method in class com.google.mu.util.stream.Iteration
Yields to the stream the result of computation.
yield(L, R) - Method in class com.google.mu.util.stream.BiIteration
Yields the pair of left and right to the result BiStream.
yield(T) - Method in class com.google.mu.util.stream.Iteration
Yields element to the result stream.
yieldAll(Iterable<? extends T>) - Method in class com.google.mu.util.stream.Iteration
Yields all of elements to the result stream.

Z

zip(Collection<L>, Collection<R>) - Static method in class com.google.mu.util.stream.BiStream
Returns a BiStream in which the first element in left is paired with the first element in right; the second paired with the corresponding second and the third with the corresponding third etc.
zip(Stream<L>, Stream<R>) - Static method in class com.google.mu.util.stream.BiStream
Returns a BiStream in which the first element in left is paired with the first element in right; the second paired with the corresponding second and the third with the corresponding third etc.
A B C D E F G H I J K L M N O P Q R S T U V W Y Z 
All Classes All Packages