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
All Classes All Packages
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 afterdelimiter
. - 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 specifiedComparator
) input elements, in encounter order, using thedownstream
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 specifiedComparator
) input elements, in encounter order, using thedownstream
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 andthat
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 tothat
. - andThen(CheckedConsumer<? super T, E>) - Method in interface com.google.mu.function.CheckedConsumer
-
Returns a new
CheckedConsumer
that also passes the input tothat
. - andThen(CheckedDoubleConsumer<E>) - Method in interface com.google.mu.function.CheckedDoubleConsumer
-
Returns a new
CheckedDoubleConsumer
that also passes the input tothat
. - 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 usingmapper
. - 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 usingmapper
. - 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 usingmapper
. - andThen(CheckedIntConsumer<E>) - Method in interface com.google.mu.function.CheckedIntConsumer
-
Returns a new
CheckedIntConsumer
that also passes the input tothat
. - andThen(CheckedLongConsumer<E>) - Method in interface com.google.mu.function.CheckedLongConsumer
-
Returns a new
CheckedLongConsumer
that also passes the input tothat
. - 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 inother
. - 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 ofkey
andvalue
. - 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 typeE
that can be converted into a pair using the giventoKey
andtoValue
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 immutableSet
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 beforedelimiter
. - 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
andafter
. - between(char, char) - Static method in class com.google.mu.util.Substring
-
Returns a
Pattern
that will match the substring between the firstopen
and the firstclose
after it. - between(Substring.Pattern, Substring.Pattern) - Static method in class com.google.mu.util.Substring
-
Returns a
Pattern
that will match the substring betweenopen
andclose
. - 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 firstopen
and the firstclose
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 theafter
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
- BiCollector<K,V,R> - Interface in com.google.mu.util.stream
-
Logically, a
BiCollector
collects "pairs of things", just as aCollector
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
- 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 betweenkeys
and the corresponding return values of thetoValue
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 thetoKey
function (when applied to each element ofvalues
), 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 thetoKey
function (when applied to each element ofvalues
), 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 betweenkeys
and the corresponding return values of thetoValue
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
andb
are present, returns aBiOptional
instance containing them; otherwise returns an emptyBiOptional
. - both(Optional<A>, Optional<B>) - Static method in class com.google.mu.util.BiOptional
-
Deprecated.
- Both<A,B> - Interface in com.google.mu.util
-
Represents two unrelated or loosely-related things of type
A
andB
. - 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 aPredicate
overMaybe
.
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/orfindOnlyElements()
methods together withOptional.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 ifstage
failed with exception ofexceptionType
, that exception is caught and wrapped inside aMaybe
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 returnedStream
. - 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 usingcollector
. - 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
- 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 aBiStream
and then appliesfinisher
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 usingfunction
and then compares the result offunction
. - 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 usingfunction
and then compares the result offunction
using the givenordering
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 typeK
. - 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 typeK
usingfunction
and then compares the result offunction
. - 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 typeK
usingfunction
and then compares the result offunction
using the givenordering
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 typeV
. - 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 typeV
usingfunction
and then compares the result offunction
. - 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 typeV
usingfunction
and then compares the result offunction
using the givenordering
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 froms1
,s2
thenrest
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 fromm1
,m2
thenrest
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 frombiStreams
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 concatenatesBiStream
objects derived from the input elements using the giventoBiStream
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 bymatcher
. - 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 toObject.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 fromright
into a newBiStream
. - 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 thedelimiter
character to delimit explicit selection elements. - delimitedBy(Substring.Pattern) - Static method in interface com.google.mu.util.Selection
-
Returns a parser for
Selection
, using thedelimiter
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 tomaxSize
elements. - dice(Stream<? extends T>, int) - Static method in class com.google.mu.util.stream.MoreStreams
-
Dices
stream
into smaller chunks each with up tomaxSize
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 toObject.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 equivalentSelection
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
forexception
. - exponentialBackoff(double, int) - Method in class com.google.mu.util.concurrent.Retryer.Delay
-
Returns an immutable
List
of delays withsize
.
F
- fibonacci(int) - Method in class com.google.mu.util.concurrent.Retryer.Delay
-
Returns a fibonacci list of delays of
size
, as in1, 1, 2, 3, 5, 8, ...
withthis
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 thisBiOptional instance
. - filter(BiPredicate<? super A, ? super B>) - Method in interface com.google.mu.util.Both
- 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 tofound
function and returns the non-null result wrapped in anOptional
, or else returnsOptional.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 tofound
function and returns the non-null result wrapped in anOptional
, or else returnsOptional.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 tofound
function and returns the non-null result wrapped in anOptional
, or else returnsOptional.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 tofound
function and returns the non-null result wrapped in anOptional
, or else returnsOptional.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 tofound
function and returns the non-null result wrapped in anOptional
, or else returnsOptional.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 tofound
function and returns the non-null result wrapped in anOptional
, or else returnsOptional.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 tofound
function and returns the non-null result wrapped in anOptional
, or else returnsOptional.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 tofound
function and returns the non-null result wrapped in anOptional
, or else returnsOptional.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 tofound
function and returns the non-null result wrapped in anOptional
, or else returnsOptional.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 tofound
function and returns the non-null result wrapped in anOptional
, or else returnsOptional.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 ofcharacter
. - first(CharPredicate) - Static method in class com.google.mu.util.Substring
-
Returns a
Pattern
that matches the first character found bycharMatcher
. - first(String) - Static method in class com.google.mu.util.Substring
-
Returns a
Pattern
that matches the first occurrence ofstr
. - first(Pattern) - Static method in class com.google.mu.util.Substring
-
Returns a
Pattern
that matches the first occurrence ofregexPattern
. - first(Pattern, int) - Static method in class com.google.mu.util.Substring
-
Returns a
Pattern
that matches the first occurrence ofregexPattern
and then selects the capturing group identified bygroup
. - firstOccurrence() - Static method in class com.google.mu.util.Substring
-
Returns a
Collector
that collects the input candidateSubstring.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
-bearingmapper
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
usingf
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 aBiOptional
usingmapper
, 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
-
Deprecated.
- 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 usingflattener
and then collects the result pairs usingdownstream
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 usingflattener
and then collects the results usingdownstream
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 aCollector
that first flattens the input stream of pairs (as opposed to single elements) and then collects the flattened pairs with thedownstream
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
double
s. - 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
int
s. - 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
long
s. - 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 inputMap
entries and collects them using thedownstream
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, orempty()
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 fromentries
. - 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 createBiStream<UserId, User>
, or, usebiStream(users, User::getAccount)
to createBiStream<User, Account>
. Then useBiStream.mapKeys(java.util.function.BiFunction<? super K, ? super V, ? extends K2>)
orBiStream.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 inmap
. - from(Optional<T>) - Static method in class com.google.mu.util.BiOptional
-
If
optional
is present with valuev
, adapts it toBiOptional
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 fromstream
. - 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 createBiStream<UserId, User>
, or, usebiStream(users, User::getAccount)
to createBiStream<User, Account>
. Then useBiStream.mapKeys(java.util.function.BiFunction<? super K, ? super V, ? extends K2>)
orBiStream.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 initialseed
, 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 nestedBiStream
. - 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 usinggroupCollector
. - 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 usinggroupReducer
. - 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 usinggroupCollector
. - groupingBy(Function<? super T, ? extends K>) - Static method in class com.google.mu.util.stream.BiStream
-
Returns a
Collector
that groups the input elements byclassifier
and collects the values mapping to the same key into aList
. - 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 byclassifier
and reduces the values mapping to the same key usingmapper
thenreducer
. - 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 byclassifier
and collects the values mapping to the same key usingvalueCollector
. - 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 byclassifier
and reduces the values mapping to the same key usingreducer
.
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
ifthis
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 bothleft
andright
are present. - ifPresent(Optional<T>, CheckedConsumer<? super T, E>) - Static method in class com.google.mu.util.Optionals
-
Invokes
consumer
ifoptional
is present. - ifPresent(OptionalDouble, CheckedDoubleConsumer<E>) - Static method in class com.google.mu.util.Optionals
-
Invokes
consumer
ifoptional
is present. - ifPresent(OptionalInt, CheckedIntConsumer<E>) - Static method in class com.google.mu.util.Optionals
-
Invokes
consumer
ifoptional
is present. - ifPresent(OptionalLong, CheckedLongConsumer<E>) - Static method in class com.google.mu.util.Optionals
-
Invokes
consumer
ifoptional
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 aMatch
if successful, orempty()
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 bygetLeft
andgetRight
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 fromfirstIndex
. - 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 thefindSuccessors
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 aWalker
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 intocontainer
. - 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 thefindChildren
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 toconsumer
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
andr
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 ofcharacter
. - last(CharPredicate) - Static method in class com.google.mu.util.Substring
-
Returns a
Pattern
that matches the last character found bycharMatcher
. - last(String) - Static method in class com.google.mu.util.Substring
-
Returns a
Pattern
that matches the last occurrence ofstr
. - 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 bymatcher
. - 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 firstmaxSize
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 mostmaxChars
. - limited() - Method in interface com.google.mu.util.Selection
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
andbMapper
to them, and if both results are non-null, return a newBiOptional
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 anOptional
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 applyingmapper
to the pairs in thisBiStream
. - 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 applyingkeyMapper
andvalueMapper
to the pairs in thisBiStream
. - 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
andbMapper
to each respectively, and if both results are non-null, return a newBiOptional
instance containing the results. - map(Function<? super T, ? extends T2>) - Method in class com.google.mu.util.Maybe
-
Maps
this
usingfunction
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
-
Deprecated.
- 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 applyingmapper
function to the pairs in thisBiStream
. - 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 applyingkeyMapper
to the key of each pair in thisBiStream
, 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 applyingkeyMapper
to each pair in thisBiStream
, 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 applyingkeyMapper
to the key of each pair in thisBiStream
, 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 typeK
to elements of typeK2
, returns aBiStream
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 usingmapper
. - 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 usingkeyMapper
andvalueMapper
respectively, then collects the results usingdownstream
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 usingmapper
and then collects the results usingdownstream
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 usesoutputMapper
to transform the output of the givencollector
. - 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 themapper
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 applyingmapper
to the pairs in thisBiStream
. - mapToInt(ToIntBiFunction<? super K, ? super V>) - Method in class com.google.mu.util.stream.BiStream
-
Returns an
IntStream
consisting of the results of applyingmapper
to the pairs in thisBiStream
. - mapToLong(ToLongBiFunction<? super K, ? super V>) - Method in class com.google.mu.util.stream.BiStream
-
Returns a
LongStream
consisting of the results of applyingmapper
to the pairs in thisBiStream
. - 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 applyingmapper
to each pair in thisBiStream
. - 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 applyingmapper
to each pair in thisBiStream
. - 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 applyingvalueMapper
to each pair in thisBiStream
, 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 applyingvalueMapper
to the value of each pair in thisBiStream
, 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 typeV
to result values of typeV2
, returns aBiStream
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 tocomparator
. - 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 aMaybe<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 returnsStream<T>
to one that returnsStream<Maybe<T, E>>
with exceptions of typeE
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 returnsStream<T>
to one that returnsStream<Maybe<T, E>>
with exceptions of typeE
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 returnsStream<T>
to one that returnsStream<Maybe<T, E>>
with exceptions of typeE
wrapped. - maybeStream(CheckedFunction<? super F, ? extends Stream<? extends T>, E>) - Static method in class com.google.mu.util.Maybe
-
Wraps
function
that returnsStream<T>
to one that returnsStream<Maybe<T, E>>
with exceptions of typeE
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 returnedStream<T>
or thrown exception into a stream ofMaybe<T, E>
. - maybeStream(CheckedSupplier<? extends Stream<? extends T>, E>) - Static method in class com.google.mu.util.Maybe
-
Invokes
supplier
and wraps the returnedStream<T>
or thrown exception into a stream ofMaybe<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 tocomparator
. - 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 bymultiplier
.
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
-
Deprecated.Use
Substring.Pattern.notFollowedBy(java.lang.String)
orSubstring.Pattern.notBetween(java.lang.String, java.lang.String)
for negative lookahead and negative lookbehind. - 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 theafter
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
andb
. - of(Duration) - Static method in class com.google.mu.util.concurrent.Retryer.Delay
-
Returns a
Delay
ofduration
. - of(K, V) - Static method in class com.google.mu.util.stream.BiStream
-
Returns a
BiStream
of a single pair containingkey
andvalue
. - 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
forleft
andright
. - 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
forvalue
. - 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
ifcondition
is true andvalue
is not null, or elseempty()
. - 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
ifcondition
is true, or elseempty()
. - 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 isch
. - or(CheckedSupplier<? extends Premise, E>) - Method in interface com.google.mu.util.Premise
-
Evaluates
alternative
ifthis
premise doesn't hold. - or(CharPredicate) - Method in interface com.google.mu.util.CharPredicate
-
Returns a
CharPredicate
that evaluates true if either this orthat
predicate evaluate to true. - or(Substring.Pattern) - Method in class com.google.mu.util.Substring.Pattern
-
Returns a
Pattern
that falls back to usingthat
ifthis
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
ifthis
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
forinputs
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
forinputs
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
forinputs
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
forinputs
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
forinputs
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
forinputs
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 withexecutor
. - parallelizeUninterruptibly(Iterator<? extends T>, Consumer<? super T>) - Method in class com.google.mu.util.concurrent.Parallelizer
-
Runs
consumer
forinputs
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
forinputs
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
- parse(String, CheckedFunction<String, ? extends T, E>) - Method in class com.google.mu.util.Selection.Parser
-
Parses
string
into aSelection
by treating the single'*'
character asSelection.all()
, and delegating toelementParser
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
-
Deprecated.Use
Substring.Pattern.followedBy(java.lang.String)
instead. - peek(String) - Method in class com.google.mu.util.Substring.Pattern
-
Deprecated.Use
Substring.Pattern.followedBy(java.lang.String)
instead. - 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 invokingaction
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 withprefix
. - prefix(String) - Static method in class com.google.mu.util.Substring
-
Returns a
Prefix
pattern that matches strings starting withprefix
. - 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 applyingreplacementFunction
for each match. - replaceFrom(StringBuilder, CharSequence) - Method in class com.google.mu.util.Substring.Prefix
-
Replaces this prefix from
builder
withreplacement
if it starts with the prefix. - replaceFrom(StringBuilder, CharSequence) - Method in class com.google.mu.util.Substring.Suffix
-
Replaces this suffix from
builder
withreplacement
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 byreplacement
. - 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 withuponReturn()
. - 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 withupon()
. - 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 withuponReturn()
. - 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 withupon()
. - 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 withuponReturn()
. - 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 withupon()
. - 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
- 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 theseparator
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 theseparatorBefore
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 theseparatorAfter
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 firstn
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 andfromEnd
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 tofromBeginnings
characters from the beginning of the match and up tofromEnd
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 applyingordering
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 applyingcomparator
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 applyingcomparator
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 ofstop1
, followed by an occurrence ofstop2
, followed sequentially by occurrences ofmoreStops
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 frominput
. - 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 frominput
. - 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 usingtoKey
andtoValue
and subsequently collect the bisected parts through thisBiCollector
. - 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 thisMatch
. - 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 thematched substring
, to the parts of the stringbefore
andafter
it, and to copies with the matched substringremoved
orreplaced
. - 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
-
An immutable string prefix
Pattern
with extra utilities such asSubstring.Prefix.addToIfAbsent(String)
,Substring.Prefix.removeFrom(StringBuilder)
,Substring.Prefix.isIn(CharSequence)
etc. - 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
-
An immutable string suffix
Pattern
with extra utilities such asSubstring.Suffix.addToIfAbsent(String)
,Substring.Suffix.removeFrom(StringBuilder)
,Substring.Suffix.isIn(CharSequence)
etc. - suffix(char) - Static method in class com.google.mu.util.Substring
-
Returns a
Suffix
pattern that matches strings ending withsuffix
. - suffix(String) - Static method in class com.google.mu.util.Substring
-
Returns a
Suffix
pattern that matches strings ending withsuffix
. - summarizingDouble(ToDoubleBiFunction<? super K, ? super V>) - Static method in class com.google.mu.util.stream.BiCollectors
-
Returns a
BiCollector
which applies andouble
-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 anint
-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 anlong
-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
-
Deprecated.
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, ifthis
BiComparator returns 0 (tie), delegates to thesecondary
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, whenFunnel.run()
is called, will be converted together in a batch throughconverter
. - 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 whenRetryer.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 whenRetryer.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 newBiStream
. - 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 aBiCollection
. - 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 equivalentBiStream
. - 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 aBiStream
. - 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 aBiStream
. - toEnd() - Method in class com.google.mu.util.Substring.Pattern
-
Returns a
Pattern
that will match from the substring matched bythis
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 immutableMap
. - 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 immutableMap
usingvalueMerger
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 givenkeyFunction
andvalueFunction
respectively, and then collects them into a mutableMap
created bymapSupplier
. - toMap(Supplier<? extends M>) - Static method in class com.google.mu.util.stream.BiCollectors
- 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 immutableMap
usingvalueCollector
to collect values of identical keys into a final value of typeV
. - 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"
ifunlimited
, 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
andSubstring.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 bymatcher
.
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 usesdelays
when an exception is instance ofexceptionType
and satisfiescondition
. - 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 usesdelays
when an exception is instance ofexceptionType
and satisfiescondition
. - upon(Class<E>, List<? extends Retryer.Delay<? super E>>) - Method in class com.google.mu.util.concurrent.Retryer
-
Returns a new
Retryer
that usesdelays
when an exception is instance ofexceptionType
. - upon(Class<E>, Stream<? extends Retryer.Delay<? super E>>) - Method in class com.google.mu.util.concurrent.Retryer
-
Returns a new
Retryer
that usesdelays
when an exception is instance ofexceptionType
. - 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 bypattern
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
andbreadth-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 anOptional
when the input has only two elements; or else returnsOptional.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 anOptional
when the input has only two elements and the two elements satifycondition
in terms ofBiPredicate.test(T, U)
; or else returnsOptional.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 anOptional
when the input has only one element; or else returnsOptional.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 anOptional
when the input has only one element and it satisfiescondition
in terms ofPredicate.test(T)
; or else returnsOptional.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 anOptional
when the input is empty; or else returnsOptional.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
-
Deprecated.Use
Substring.Pattern.separatedBy(CharPredicate)
instead. - withBoundary(CharPredicate, CharPredicate) - Method in class com.google.mu.util.Substring.Pattern
-
Deprecated.
- 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 ofword
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 incontinuation
. - 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
andright
to the resultBiStream
. - 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 inleft
is paired with the first element inright
; 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 inleft
is paired with the first element inright
; the second paired with the corresponding second and the third with the corresponding third etc.
All Classes All Packages