Index
All Classes and Interfaces|All Packages|Serialized Form
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
-
Deprecated.Adds
source
to be converted. - accept(F, Consumer<? super T>) - Method in class com.google.mu.util.Funnel.Batch
-
Deprecated.Adds
source
to be converted. - accept(F, Function<? super T, ? extends T>) - Method in class com.google.mu.util.Funnel.Batch
-
Deprecated.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(String, boolean) - Method in class com.google.mu.protobuf.util.StructBuilder
-
Adds a
(name, value)
field. - add(String, double) - Method in class com.google.mu.protobuf.util.StructBuilder
-
Adds a
(name, value)
field. - add(String, StructBuilder) - Method in class com.google.mu.protobuf.util.StructBuilder
-
Adds a
(name, struct)
field. - add(String, ListValue) - Method in class com.google.mu.protobuf.util.StructBuilder
-
Adds a
(name, value)
field. - add(String, Struct) - Method in class com.google.mu.protobuf.util.StructBuilder
-
Adds a
(name, struct)
field. - add(String, Value) - Method in class com.google.mu.protobuf.util.StructBuilder
-
Adds a
(name, value)
field. - add(String, Iterable<Value>) - Method in class com.google.mu.protobuf.util.StructBuilder
-
Adds a
(name, values) field
, withvalues
wrapped inListValue
. - add(String, String) - Method in class com.google.mu.protobuf.util.StructBuilder
-
Adds a
(name, value)
field. - add(String, Map<String, Value>) - Method in class com.google.mu.protobuf.util.StructBuilder
-
Adds a
(name, map)
field. - add(List<? extends K>, V) - Method in class com.google.mu.collect.PrefixSearchTable.Builder
-
Adds the mapping from
compoundKey
tovalue
. - add(K, V) - Method in class com.google.mu.util.stream.BiStream.Builder
- add(T) - Method in class com.google.mu.util.Funnel
-
Deprecated.Adds
element
to the funnel. - addAll(Multimap<String, Value>) - Method in class com.google.mu.protobuf.util.StructBuilder
-
Adds all distinct keys from
multimap
into this builder. - addAll(Table<String, String, Value>) - Method in class com.google.mu.protobuf.util.StructBuilder
-
Adds all rows from
table
into this builder. - addAll(Map<? extends List<? extends K>, ? extends V>) - Method in class com.google.mu.collect.PrefixSearchTable.Builder
-
Adds all of
mappings
into this builder. - addAll(Map<String, Value>) - Method in class com.google.mu.protobuf.util.StructBuilder
-
Adds all key-value pairs from
map
into this builder. - addAllFields(StructBuilder) - Method in class com.google.mu.protobuf.util.StructBuilder
-
Adds all fields from
that
into this builder. - addAllFields(Struct) - Method in class com.google.mu.protobuf.util.StructBuilder
-
Adds all fields from
that
into this builder. - 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(double) - Static method in class com.google.mu.collect.InsertionPoint
-
Returns an insertion point immediately after
floor
. - after(int) - Static method in class com.google.mu.collect.InsertionPoint
-
Returns an insertion point immediately after the given
floor
and before the next integer (ifceiling
isn'tInteger.MAX_VALUE
). - after(long) - Static method in class com.google.mu.collect.InsertionPoint
-
Returns an insertion point immediately after the given
floor
and before the next integer (ifceiling
isn'tLong.MAX_VALUE
). - after(Substring.Pattern) - Static method in class com.google.mu.util.Substring
-
Returns a
Pattern
that covers the substring afterdelimiter
. - after(C, DiscreteDomain<C>) - Static method in class com.google.mu.collect.InsertionPoint
-
Returns an insertion point immediately after the given
floor
and before the next element in the given discretedomain
(if a next element exists). - 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.collect.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() - Static method in class com.google.mu.bigquery.ParameterizedQuery
-
A collector that joins boolean query snippets using
AND
operator. - and() - Static method in class com.google.mu.safesql.SafeQuery
-
A collector that joins boolean query snippets using
AND
operator. - and() - Static method in class com.google.mu.safesql.SafeSql
-
A collector that joins boolean query snippets using
AND
operator. - 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
. - anyOf(String) - Static method in interface com.google.mu.util.CharPredicate
-
Returns a CharPredicate that matches any of
chars
. - 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
. - APPLICATION_SPECIFIC - Enum constant in enum class com.google.mu.util.concurrent.StructuredConcurrencyExecutorPlugin.Priority
-
For application (server) owners to override any framework or library plugins.
- apply(A, B) - Method in interface com.google.mu.function.CheckedBiFunction
- apply(F) - Method in interface com.google.mu.function.CheckedFunction
- asChecked() - Method in exception class com.google.mu.safesql.UncheckedSqlException
- ASCII - Static variable in interface com.google.mu.util.CharPredicate
-
Corresponds to the ASCII characters.
- asList(ListValueOrBuilder) - Static method in class com.google.mu.protobuf.util.MoreValues
-
Returns a
List<Object>
view overlistValue
. - asMap(Struct) - Static method in class com.google.mu.protobuf.util.MoreStructs
-
Returns a
Map<String, Object>
view overstruct
. - asSet(Optional<? extends T>) - Static method in class com.google.mu.util.Optionals
- at(C) - Static method in class com.google.mu.collect.InsertionPoint
-
Returns an insertion point exactly at
element
such thatInsertionPoint.exact()
,InsertionPoint.floor
andInsertionPoint.ceiling
all return the same element. - 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(double) - Static method in class com.google.mu.collect.InsertionPoint
-
Returns an insertion point immediately before
ceiling
. - before(int) - Static method in class com.google.mu.collect.InsertionPoint
-
Returns an insertion point immediately before the given
ceiling
and after the previous integer (ifceiling
isn'tInteger.MIN_VALUE
). - before(long) - Static method in class com.google.mu.collect.InsertionPoint
-
Returns an insertion point immediately before the given
ceiling
and after the previous integer (ifceiling
isn'tLong.MIN_VALUE
). - before(Substring.Pattern) - Static method in class com.google.mu.util.Substring
-
Returns a
Pattern
that covers the substring beforedelimiter
. - before(C, DiscreteDomain<C>) - Static method in class com.google.mu.collect.InsertionPoint
-
Returns an insertion point immediately before the given
ceiling
and after the previous element in the given discretedomain
(if a previous element exists). - 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(char, Substring.BoundStyle, char, Substring.BoundStyle) - Static method in class com.google.mu.util.Substring
-
Similar to
Substring.between(char, char)
but allows to use alternative bound styles to include or exclude the delimiters at both ends. - between(double, double) - Static method in class com.google.mu.collect.InsertionPoint
-
Returns an insertion point in the open range of
(floor, ceiling)
. - between(Substring.Pattern, Substring.BoundStyle, Substring.Pattern, Substring.BoundStyle) - Static method in class com.google.mu.util.Substring
-
Similar to
Substring.between(Pattern, Pattern)
but allows to use alternative bound styles to include or exclude the delimiters at both ends. - 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, Substring.BoundStyle, String, Substring.BoundStyle) - Static method in class com.google.mu.util.Substring
-
Similar to
Substring.between(String, String)
but allows to use alternative bound styles to include or exclude the delimiters at both ends. - 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. - BiAccumulator<C,
L, - Interface in com.google.mu.util.streamR> -
Interface modeling a builder funcction that accepts two parameters.
- BiCollection<L,
R> - Class in com.google.mu.util.stream -
Deprecated.too niche
- BiCollector<K,
V, - Interface in com.google.mu.util.streamR> -
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
. - BiIteration<L,
R> - Class in com.google.mu.util.stream - BiIteration() - Constructor for class com.google.mu.util.stream.BiIteration
- biMap() - Static method in class com.google.mu.collect.Immutables
-
Deprecated.Returns the empty bimap.
- biMap(K, V) - Static method in class com.google.mu.collect.Immutables
-
Deprecated.Returns an immutable bimap containing a single entry.
- biMap(K, V, K, V) - Static method in class com.google.mu.collect.Immutables
-
Deprecated.Returns an immutable map containing the given entries, in order.
- biMap(K, V, K, V, K, V) - Static method in class com.google.mu.collect.Immutables
-
Deprecated.Returns an immutable map containing the given entries, in order.
- biMap(K, V, K, V, K, V, K, V) - Static method in class com.google.mu.collect.Immutables
-
Deprecated.Returns an immutable map containing the given entries, in order.
- biMap(K, V, K, V, K, V, K, V, K, V) - Static method in class com.google.mu.collect.Immutables
-
Deprecated.Returns an immutable map containing the given entries, in order.
- biMap(K, V, K, V, K, V, K, V, K, V, K, V) - Static method in class com.google.mu.collect.Immutables
-
Deprecated.Returns an immutable map containing the given entries, in order.
- biMap(K, V, K, V, K, V, K, V, K, V, K, V, K, V) - Static method in class com.google.mu.collect.Immutables
-
Deprecated.Returns an immutable map containing the given entries, in order.
- biMap(K, V, K, V, K, V, K, V, K, V, K, V, K, V, K, V) - Static method in class com.google.mu.collect.Immutables
-
Deprecated.Returns an immutable map containing the given entries, in order.
- biMap(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.collect.Immutables
-
Deprecated.Returns an immutable map containing the given entries, in order.
- biMap(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.collect.Immutables
-
Deprecated.Returns an immutable map containing the given entries, in order.
- BinarySearch - Class in com.google.mu.collect
-
Generic binary search algorithm with support for and beyond sorted lists and arrays, in a fluent API.
- BinarySearch.DoubleSearchTarget - Interface in com.google.mu.collect
-
Represents the search target that can be found through bisecting the double domain.
- BinarySearch.IntSearchTarget - Interface in com.google.mu.collect
-
Represents the search target that can be found through bisecting the integer domain.
- BinarySearch.LongSearchTarget - Interface in com.google.mu.collect
-
Represents the search target that can be found through bisecting the long integer domain.
- BinarySearch.Table<K,
C> - Class in com.google.mu.collect -
Like a hash table, allows looking up comparable values by a key, except the lookup is through binary search instead of hashing.
- 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<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. - breakCase(CharSequence) - Method in class com.google.mu.util.CaseBreaker
-
Returns a lazy stream of words split out from
text
, delimited by non-letter-digit ascii characters, and further split atlowerCamelCase
andUpperCamelCase
boundaries. - build() - Method in class com.google.mu.collect.PrefixSearchTable.Builder
- build() - Method in class com.google.mu.protobuf.util.StructBuilder
-
Returns a new
Struct
instance with all added fields. - build() - Method in class com.google.mu.util.stream.BiStream.Builder
- builder() - Static method in class com.google.mu.collect.PrefixSearchTable
-
Returns a new builder.
- builder() - Static method in class com.google.mu.util.stream.BiStream
-
Returns a new
BiStream.Builder
. - by(Function<Q, ? extends K>) - Method in class com.google.mu.collect.BinarySearch.Table
-
Returns a new
BinarySearch.Table
over the same source but transforms the search target using the givenkeyFunction
first. - byValue(Predicate<? super T>) - Static method in class com.google.mu.util.Maybe
-
Deprecated.Turns
condition
to aPredicate
overMaybe
.
C
- CaseBreaker - Class in com.google.mu.util
- CaseBreaker() - Constructor for class com.google.mu.util.CaseBreaker
- catchException(Class<E>, CompletionStage<? extends T>) - Static method in class com.google.mu.util.Maybe
-
Deprecated.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
-
Deprecated.Catches and handles exception with
handler
, and then skips it in the returnedStream
. - ceiling() - Method in class com.google.mu.collect.InsertionPoint
-
Returns the ceiling element such that this insertion point is immediately
<=
the ceiling. - Chain<T> - Class in com.google.mu.collect
-
Immutable
List
implementation that supports O(1) concatenation. - 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, - Interface in com.google.mu.functionE> -
A binary consumer that can throw checked exceptions.
- CheckedBiFunction<A,
B, - Interface in com.google.mu.functionT, E> -
A binary function that can throw checked exceptions.
- CheckedBiPredicate<A,
B, - Interface in com.google.mu.functionE> -
A binary predicate that can throw checked exceptions.
- CheckedConsumer<T,
E> - Interface in com.google.mu.function -
A consumer that can throw checked exceptions.
- CheckedDoubleConsumer<E> - Interface in com.google.mu.function
-
A double-value consumer that can throw checked exceptions.
- CheckedFunction<F,
T, - Interface in com.google.mu.functionE> -
A function that can throw checked exceptions.
- CheckedIntConsumer<E> - Interface in com.google.mu.function
-
An int consumer that can throw checked exceptions.
- CheckedLongConsumer<E> - Interface in com.google.mu.function
-
A 64-bit long consumer that can throw checked exceptions.
- CheckedRunnable<E> - Interface in com.google.mu.function
- CheckedSupplier<T,
E> - 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, ? extends Both<? extends A, ? extends B>>, BiFunction<? super A, ? super B, ? extends R>) - Static method in class com.google.mu.util.stream.BiCollectors
- 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. - collectingAndThen(Collector<T, ?, ? extends Both<? extends A, ? extends B>>, BiFunction<? super A, ? super B, ? extends R>) - Static method in class com.google.mu.util.stream.MoreCollectors
- collectorOf(Function<E, K>, Function<E, V>) - Method in interface com.google.mu.util.stream.BiCollector
-
Returns a
Collector
such that the keys (as returned by thetoKey
function) and values (as returned by thetoValue
function) of the input elements are collected by thisBiCollector
. - com.google.mu.annotations - package com.google.mu.annotations
-
Annotations used by the ErrorProne plugin
- com.google.mu.bigquery - package com.google.mu.bigquery
-
BigQuery Client Library (requires mug-bigquery artifact)
- com.google.mu.collect - package com.google.mu.collect
-
A few useful collections.
- com.google.mu.function - package com.google.mu.function
-
Some extra functional interfaces.
- com.google.mu.protobuf.util - package com.google.mu.protobuf.util
-
Google Protobuf utilities (requires mug-protobuf artifact)
- com.google.mu.safesql - package com.google.mu.safesql
-
GoogleSql, SafeQuery
- com.google.mu.time - package com.google.mu.time
-
Golang-style DateTimeFormatter inference by examples (without magical date).
- com.google.mu.util - package com.google.mu.util
-
StringFormat, Substring, Optionals and more...
- com.google.mu.util.concurrent - package com.google.mu.util.concurrent
-
Parallelizer (parallel stream using Executor), Retryer.
- 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
-
BiStream, BiCollector, MoreStreams, MoreCollectors etc.
- combiner() - Method in class com.google.mu.util.stream.Joiner
- combining(MapFrom3<? 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. - combining(MapFrom4<? 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. - combining(MapFrom5<? 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. - combining(MapFrom6<? 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. - combining(MapFrom7<? super T, ? extends R>) - Static method in class com.google.mu.util.stream.MoreCollectors
-
Returns a collector that collects the only seven elements from the input and transforms them using the
mapper
function. - combining(MapFrom8<? super T, ? extends R>) - Static method in class com.google.mu.util.stream.MoreCollectors
-
Returns a collector that collects the only eight elements from the input and transforms them using the
mapper
function. - combining(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. - compareTo(InsertionPoint<C>) - Method in class com.google.mu.collect.InsertionPoint
- 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. - concat(Chain<? extends T>, Chain<? extends T>) - Static method in class com.google.mu.collect.Chain
-
Returns a new Chain concatenating elements from the
left
Chain and theright
Chain, in O(1) time. - 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. - concat(T) - Method in class com.google.mu.collect.Chain
-
Returns a new Chain concatenating elements from
this
Chain followed bylastElement
, in O(1) time. - 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. - concurrently(Supplier<A>, Supplier<B>, Fanout.Join2<? super A, ? super B, R, X>) - Static method in class com.google.mu.util.concurrent.Fanout
-
Runs
a
andb
concurrently in their own virtual threads. - concurrently(Supplier<A>, Supplier<B>, StructuredConcurrency.Join2<? super A, ? super B, R, X>) - Method in class com.google.mu.util.concurrent.StructuredConcurrency
-
Deprecated.Runs
a
andb
concurrently in their own virtual threads. - concurrently(Supplier<A>, Supplier<B>, Supplier<C>, Fanout.Join3<? super A, ? super B, ? super C, R, X>) - Static method in class com.google.mu.util.concurrent.Fanout
-
Runs
a
,b
andc
concurrently in their own virtual threads. - concurrently(Supplier<A>, Supplier<B>, Supplier<C>, StructuredConcurrency.Join3<? super A, ? super B, ? super C, R, X>) - Method in class com.google.mu.util.concurrent.StructuredConcurrency
-
Deprecated.Runs
a
,b
andc
concurrently in their own virtual threads. - concurrently(Supplier<A>, Supplier<B>, Supplier<C>, Supplier<D>, Fanout.Join4<? super A, ? super B, ? super C, ? super D, R, X>) - Static method in class com.google.mu.util.concurrent.Fanout
-
Runs
a
,b
,c
andd
concurrently in their own virtual threads. - concurrently(Supplier<A>, Supplier<B>, Supplier<C>, Supplier<D>, StructuredConcurrency.Join4<? super A, ? super B, ? super C, ? super D, R, X>) - Method in class com.google.mu.util.concurrent.StructuredConcurrency
-
Deprecated.Runs
a
,b
,c
andd
concurrently in their own virtual threads. - concurrently(Supplier<A>, Supplier<B>, Supplier<C>, Supplier<D>, Supplier<E>, Fanout.Join5<? super A, ? super B, ? super C, ? super D, ? super E, R, X>) - Static method in class com.google.mu.util.concurrent.Fanout
-
Runs
a
,b
,c
,d
ande
concurrently in their own virtual threads. - concurrently(Supplier<A>, Supplier<B>, Supplier<C>, Supplier<D>, Supplier<E>, StructuredConcurrency.Join5<? super A, ? super B, ? super C, ? super D, ? super E, R, X>) - Method in class com.google.mu.util.concurrent.StructuredConcurrency
-
Deprecated.Runs
a
,b
,c
,d
ande
concurrently in their own virtual threads. - 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
. - contentEquals(String) - Method in class com.google.mu.util.Substring.Match
-
Equivalent to
toString().equals(str)
but without copying the characters into a temporary string. - 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. - countingBy(Function<? super T, ? extends B>) - Static method in class com.google.mu.util.stream.GuavaCollectors
-
Returns a collector that counts the number of occurrences for each unique bucket as determined by the
bucketer
function. - 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. - createExecutor() - Method in class com.google.mu.util.concurrent.StructuredConcurrencyExecutorPlugin
-
Subclasses override this method to create the executor that runs all structured concurrency fanout tasks.
- 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
. - cut(String) - Method in class com.google.mu.util.Substring.RepeatingPattern
-
Returns a stream of
Match
objects from the inputstring
as demarcated by this delimiter pattern. - CyclicGraphException - Exception Class in com.google.mu.util.graph
-
Thrown when running into any unexpected cycle during traversal.
- CyclicGraphException(List<?>) - Constructor for exception class com.google.mu.util.graph.CyclicGraphException
- cyclicPath() - Method in exception class com.google.mu.util.graph.CyclicGraphException
-
Returns the cyclic path with the last node being the entry point of the cycle.
D
- DateTimeFormats - Class in com.google.mu.time
-
Utility class with one-stop
Instant
andZonedDateTime
parsing for all common date time strings, without needing aDateTimeFormatter
: - defaultValue(Object) - Method in class com.google.mu.protobuf.util.Structor
-
Called by
Structor.toValue(java.lang.Object)
whenobject
cannot be converted. - Delay() - Constructor for class com.google.mu.util.concurrent.Retryer.Delay
- delimitedBy(char) - Static method in interface com.google.mu.collect.Selection
-
Returns a parser for
Selection
, using thedelimiter
character to delimit explicit selection elements. - delimitedBy(Substring.Pattern) - Static method in interface com.google.mu.collect.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
. - EMPTY - Static variable in class com.google.mu.bigquery.ParameterizedQuery
-
An empty query
- EMPTY - Static variable in class com.google.mu.safesql.SafeQuery
-
An empty query string.
- EMPTY - Static variable in class com.google.mu.safesql.SafeSql
-
An empty SQL
- END - Static variable in class com.google.mu.util.Substring
-
Pattern
that matches the empty substring at the end of the input string. - endsWith(String) - Method in class com.google.mu.util.Substring.Match
-
Returns true if this match ends with the given
suffix
. - enumConstants(Class<? extends Enum<?>>) - Static method in class com.google.mu.bigquery.ParameterizedQuery
-
Returns the stream of enum constants defined by
enumClass
, with the names wrapped in ParameterizedQuery}. - equals(Object) - Method in class com.google.mu.bigquery.ParameterizedQuery
- equals(Object) - Method in class com.google.mu.collect.InsertionPoint
- equals(Object) - Method in interface com.google.mu.collect.Selection
-
Returns true if
obj
is an equivalentSelection
instance. - equals(Object) - Method in class com.google.mu.safesql.SafeQuery
- equals(Object) - Method in class com.google.mu.safesql.SafeSql
- 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 class com.google.mu.util.stream.BiCollection
-
Deprecated.
- equals(Object) - Method in class com.google.mu.util.Substring.Prefix
- equals(Object) - Method in class com.google.mu.util.Substring.Suffix
- exact() - Method in class com.google.mu.collect.InsertionPoint
-
If this represents an exact point (not between two adjacent values), returns the element at the point; else returns empty.
- except(E) - Static method in class com.google.mu.util.Maybe
-
Deprecated.Creates an exceptional
Maybe
forexception
. - EXCLUSIVE - Enum constant in enum class com.google.mu.util.Substring.BoundStyle
-
The match doesn't include the bound
- exponentialBackoff(double, int) - Method in class com.google.mu.util.concurrent.Retryer.Delay
-
Returns an immutable
List
of delays withsize
.
F
- FALSE - Static variable in class com.google.mu.protobuf.util.MoreValues
-
The
Value
for booleanfalse
. - Fanout - Class in com.google.mu.util.concurrent
-
Supports structured concurrency for the common case where all concurrent operations are required (as if you are running them sequentially).
- Fanout.Join2<A,
B, - Interface in com.google.mu.util.concurrentR, X> -
Function to join two results from concurrent computation.
- Fanout.Join3<A,
B, - Interface in com.google.mu.util.concurrentC, R, X> -
Function to join three results from concurrent computation.
- Fanout.Join4<A,
B, - Interface in com.google.mu.util.concurrentC, D, R, X> -
Function to join four results from concurrent computation.
- Fanout.Join5<A,
B, - Interface in com.google.mu.util.concurrentC, D, E, R, X> -
Function to join five results from concurrent computation.
- 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
. - find(K) - Method in class com.google.mu.collect.BinarySearch.Table
-
Searches for
target
and returns the result if found; or else returns empty. - 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>, MapFrom3<? super T, ? extends R>) - Static method in class com.google.mu.collect.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>, MapFrom4<? super T, ? extends R>) - Static method in class com.google.mu.collect.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>, MapFrom5<? super T, ? extends R>) - Static method in class com.google.mu.collect.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>, MapFrom6<? super T, ? extends R>) - Static method in class com.google.mu.collect.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>, MapFrom7<? super T, ? extends R>) - Static method in class com.google.mu.collect.MoreCollections
-
If
collection
has at least 7 elements, passes the first 6 elements tofound
function and returns the non-null result wrapped in anOptional
, or else returnsOptional.empty()
. - findFirstElements(Collection<T>, MapFrom8<? super T, ? extends R>) - Static method in class com.google.mu.collect.MoreCollections
-
If
collection
has at least 8 elements, passes the first 6 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.collect.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>, MapFrom3<? super T, ? extends R>) - Static method in class com.google.mu.collect.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>, MapFrom4<? super T, ? extends R>) - Static method in class com.google.mu.collect.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>, MapFrom5<? super T, ? extends R>) - Static method in class com.google.mu.collect.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>, MapFrom6<? super T, ? extends R>) - Static method in class com.google.mu.collect.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>, MapFrom7<? super T, ? extends R>) - Static method in class com.google.mu.collect.MoreCollections
-
If
collection
has exactly 7 elements, passes the 6 elements tofound
function and returns the non-null result wrapped in anOptional
, or else returnsOptional.empty()
. - findOnlyElements(Collection<T>, MapFrom8<? super T, ? extends R>) - Static method in class com.google.mu.collect.MoreCollections
-
If
collection
has exactly 8 elements, passes the 6 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.collect.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, - Class in com.google.mu.util.streamR> -
A collector that expects a fixed number of input elements.
- 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
-
Deprecated.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. - 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
-
Deprecated.Use
flatMap()
in Java 10+ - 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. - flatteningToImmutableListMultimap(Function<? super T, ? extends Stream<? extends V>>) - Static method in class com.google.mu.util.stream.GuavaCollectors
-
Returns a
BiCollector
that first flattens each value of the input pair withflattener
, and then collects the flattened pairs into anImmutableListMultimap
. - flatteningToImmutableSetMultimap(Function<? super T, ? extends Stream<? extends V>>) - Static method in class com.google.mu.util.stream.GuavaCollectors
-
Returns a
BiCollector
that first flattens each value of the input pair withflattener
, and then collects the flattened pairs into anImmutableSetMultimap
. - flatteningToStruct() - Static method in class com.google.mu.protobuf.util.MoreStructs
-
Returns a
Collector
that flattens all fields from the inputStruct
s and collects them into the finalStruct
. - floor() - Method in class com.google.mu.collect.InsertionPoint
-
Returns the floor element such that this insertion point is immediately
>=
the floor. - followedBy(String) - Method in class com.google.mu.util.Substring.Pattern
-
Returns an otherwise equivalent pattern except it requires the matched substring be immediately followed by the
lookahead
string. - forDoubles() - Static method in class com.google.mu.collect.BinarySearch
-
Returns a
BinarySearch.Table
over all finite double values (exceptDouble.NaN
,Double.NEGATIVE_INFINITY
andDouble.POSITIVE_INFINITY
). - forDoubles(Range<Double>) - Static method in class com.google.mu.collect.BinarySearch
-
Similar to
BinarySearch.forInts(Range)
, but returns aBinarySearch.Table
over the givenrange
ofdouble
precision numbers. - 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. - forInts() - Static method in class com.google.mu.collect.BinarySearch
-
Returns a
BinarySearch.Table
over all integers. - forInts(Range<Integer>) - Static method in class com.google.mu.collect.BinarySearch
-
Returns a
BinarySearch.Table
over the givenrange
. - forLongs() - Static method in class com.google.mu.collect.BinarySearch
- forLongs(Range<Long>) - Static method in class com.google.mu.collect.BinarySearch
-
Similar to
BinarySearch.forInts(Range)
, but returns aBinarySearch.Table
over the givenrange
oflong
integers. - format(Object...) - Method in class com.google.mu.util.StringFormat
-
Returns the string formatted with placeholders filled using
args
. - formatOf(String) - Static method in class com.google.mu.time.DateTimeFormats
-
Infers and returns the
DateTimeFormatter
based onexample
. - FRAMEWORK_STANDARD - Enum constant in enum class com.google.mu.util.concurrent.StructuredConcurrencyExecutorPlugin.Priority
-
For server framework authors to implement a framework-configured standard plugin.
- 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(String, Object...) - Static method in class com.google.mu.safesql.GoogleSql
-
Much like
SafeQuery.of(java.lang.String)
, but with additional GoogleSQL translation rules. - 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. - fromEntries(Stream<E>) - Static method in class com.google.mu.util.stream.BiStream
- fromIndex(int) - Static method in class com.google.mu.util.Ordinal
-
Returns instance corresponding to the
zeroBased
index. - fromValue(ValueOrBuilder) - Static method in class com.google.mu.protobuf.util.MoreValues
-
Unwraps
value
. - 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
-
Deprecated.too niche
- Funnel() - Constructor for class com.google.mu.util.Funnel
-
Deprecated.
- Funnel.Batch<F,
T> - Class in com.google.mu.util -
Deprecated.too niche
G
- generate(Iterable<? extends T>) - Method in class com.google.mu.util.stream.Iteration
-
Generates all of
elements
to the result stream. - generate(L, R) - Method in class com.google.mu.util.stream.BiIteration
-
Generates the pair of
left
andright
to the resultBiStream
. - generate(T) - Method in class com.google.mu.util.stream.Iteration
-
Generates
element
to the result stream. - 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
- get(int) - Method in class com.google.mu.collect.Chain
- get(List<? extends K>) - Method in class com.google.mu.collect.PrefixSearchTable
-
Searches the table for the longest prefix match of
compoundKey
. - getAll(List<? extends K>) - Method in class com.google.mu.collect.PrefixSearchTable
-
Searches the table for prefixes of
compoundKey
and returns a lazy BiStream of all mappings in ascending order of prefix length. - getFirst() - Method in class com.google.mu.collect.Chain
-
Returns the first element.
- getParameters() - Method in class com.google.mu.safesql.SafeSql
-
Returns the parameter values in the order they occur in the SQL.
- GoogleSql - Class in com.google.mu.safesql
-
Facade class providing
SafeQuery
templates for GoogleSQL. - GraphWalker<N> - Class in com.google.mu.util.graph
-
Walker for graph topology (see
Walker.inGraph()
). - 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
. - groupingByEach(Function<? super T, ? extends Stream<? extends K>>, Function<? super T, ? extends V>, BinaryOperator<V>) - Static method in class com.google.mu.util.stream.BiStream
-
Returns a
Collector
grouping input elements by each of the multiple keys returned by thekeysFunction
. - groupingByEach(Function<? super T, ? extends Stream<? extends K>>, Function<? super T, ? extends V>, Collector<V, ?, G>) - Static method in class com.google.mu.util.stream.BiStream
-
Returns a
Collector
grouping input elements by each of the multiple keys returned by thekeysFunction
. - groupingByEach(Function<? super T, ? extends Stream<? extends K>>, Collector<T, ?, V>) - Static method in class com.google.mu.util.stream.BiStream
-
Returns a
Collector
grouping input elements by each of the multiple keys returned by thekeysFunction
. - GuavaCollectors - Class in com.google.mu.util.stream
-
Guava-specific Collectors and BiCollectors.
H
- has(T) - Method in interface com.google.mu.collect.Selection
-
Returns true if
candidate
is in this selection. - hashCode() - Method in class com.google.mu.bigquery.ParameterizedQuery
- hashCode() - Method in class com.google.mu.collect.InsertionPoint
- hashCode() - Method in interface com.google.mu.collect.Selection
- hashCode() - Method in class com.google.mu.safesql.SafeQuery
- hashCode() - Method in class com.google.mu.safesql.SafeSql
- hashCode() - Method in class com.google.mu.util.concurrent.Retryer.Delay
- hashCode() - Method in class com.google.mu.util.Ordinal
- hashCode() - Method in class com.google.mu.util.stream.BiCollection
-
Deprecated.
- hashCode() - Method in class com.google.mu.util.Substring.Prefix
- hashCode() - Method in class com.google.mu.util.Substring.Suffix
- hideFrom(String) - Method in class com.google.mu.util.Substring.Prefix
-
Returns a view of
source
with this prefix hidden away if present, or else returnssource
as is. - hideFrom(String) - Method in class com.google.mu.util.Substring.Suffix
-
Returns a view of
source
with this suffix hidden away if present, or else returnssource
as is.
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
-
Deprecated.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
. - immediatelyBetween(String, Substring.BoundStyle, String, Substring.BoundStyle) - Method in class com.google.mu.util.Substring.Pattern
-
Similar to
Substring.Pattern.immediatelyBetween(String, String)
, but allows including thelookbehind
and/orlookahead
inclusive in the match. - immediatelyBetween(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. - Immutables - Class in com.google.mu.collect
-
Deprecated.Please do not use it. It's only used internally.
- in(String) - Method in class com.google.mu.util.Substring.Pattern
-
Matches this pattern against
string
, returning aMatch
if successful, orempty()
otherwise. - in(String, int) - Method in class com.google.mu.util.Substring.Pattern
-
Matches this pattern against
string
starting from the character atfromIndex
, 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. - INCLUSIVE - Enum constant in enum class com.google.mu.util.Substring.BoundStyle
-
The match includes the bound
- 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
. - indexingBy(Function<? super V, ? extends K>) - Static method in class com.google.mu.util.stream.GuavaCollectors
-
Returns a
Collector
that collects to anImmutableMap
with the input elements uniquely indexed by the return value ofindexingFunction
. - 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. - inOrder(Optional<? extends A>, Function<? super A, ? extends Optional<? extends B>>) - Static method in class com.google.mu.util.Optionals
-
Similar to
Optionals.both(java.util.Optional<? extends A>, java.util.Optional<? extends B>)
, but only evaluatesstep2
ifstep1
is present. - inOrder(Optional<? extends A>, Supplier<? extends Optional<? extends B>>) - Static method in class com.google.mu.util.Optionals
-
Similar to
Optionals.both(java.util.Optional<? extends A>, java.util.Optional<? extends B>)
, but only evaluatesstep2
ifstep1
is present. - 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
. - inParallel(Function<? super I, ? extends O>) - Method in class com.google.mu.util.concurrent.Parallelizer
- InsertionPoint<C> - Class in com.google.mu.collect
-
Represents a result of
BinarySearch
. - insertionPointAfter(K) - Method in class com.google.mu.collect.BinarySearch.Table
-
Finds the insertion point immediately after the last element that's less than or equal to the target.
- insertionPointBefore(K) - Method in class com.google.mu.collect.BinarySearch.Table
-
Finds the insertion point immediately before the first element that's greater than or equal to the target.
- insertionPointFor(K) - Method in class com.google.mu.collect.BinarySearch.Table
-
Finds the
InsertionPoint
iftarget
were to be added in order. - inSortedArray(int[]) - Static method in class com.google.mu.collect.BinarySearch
-
Returns a
BinarySearch.Table
to search for array element indexes in the given sorted intarray
. - inSortedArray(long[]) - Static method in class com.google.mu.collect.BinarySearch
-
Returns a
BinarySearch.Table
to search for array element indexes in the given sorted longarray
. - inSortedArrayWithTolerance(double[], double) - Static method in class com.google.mu.collect.BinarySearch
-
Returns a
BinarySearch.Table
to search for array element indexes in the given sorted doublearray
. - inSortedList(List<? extends E>) - Static method in class com.google.mu.collect.BinarySearch
-
Returns a
BinarySearch.Table
to search for element indexes in the given sortedlist
. - inSortedList(List<? extends E>, Comparator<? super E>) - Static method in class com.google.mu.collect.BinarySearch
-
Returns a
BinarySearch.Table
to search for element indexes in the given sortedlist
according tocomparator
. - inSortedList(List<? extends E>, Function<? super E, ? extends Q>) - Static method in class com.google.mu.collect.BinarySearch
-
Returns a
BinarySearch.Table
to search for element indexes in the givenlist
sorted by thesortBy
function. - inSortedListWithTolerance(List<Double>, double) - Static method in class com.google.mu.collect.BinarySearch
-
Returns a
BinarySearch.Table
to search for element indexes in the given list of sorteddouble
values. - interpolate(List<String>, BiStream<Substring.Match, Object>) - Method in interface com.google.mu.util.StringFormat.Interpolator
-
Interpolates with
fragments
of sizeN + 1
andplaceholders
of sizeN
. - intersect(Selection<T>) - Method in interface com.google.mu.collect.Selection
-
Returns an intersection of this selection and
that
. - intersect(Set<? extends T>) - Method in interface com.google.mu.collect.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. - inverse(BiCollector<B, A, R>) - Static method in class com.google.mu.util.stream.BiCollectors
-
Returns a BiCollector that inverses the input pairs of
(a, b)
into(b, a)
before passing it todownstream
collector. - is(char) - Static method in interface com.google.mu.util.CharPredicate
-
Returns a CharPredicate for the range of characters:
[from, to]
. - isAboveAll() - Method in class com.google.mu.collect.InsertionPoint
-
Returns true if this is a point above the max possible element in the domain.
- isBelowAll() - Method in class com.google.mu.collect.InsertionPoint
-
Returns true if this is a point below the min possible element in the domain.
- isEmpty() - Method in class com.google.mu.collect.Chain
-
Always false.
- isEmpty() - Method in interface com.google.mu.collect.Selection
-
Returns true if this is a
limited
selection with zero elements included. - isEmpty() - Method in class com.google.mu.util.Substring.Match
-
Returns true if the match is empty.
- isFollowedBy(String) - Method in class com.google.mu.util.Substring.Match
-
Returns true if the match is immediately followed by the
lookahead
string. - isImmediatelyBetween(String, String) - Method in class com.google.mu.util.Substring.Match
-
Returns true if the match immediately follows the
lookbehind
string and is immediately followed by thelookahead
string. - 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.
- isPrecededBy(String) - Method in class com.google.mu.util.Substring.Match
-
Returns true if the match immediately follows the
lookbehind
string. - 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
-
Deprecated.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
generated
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.
- iterator() - Method in class com.google.mu.collect.Chain
J
- jobConfiguration() - Method in class com.google.mu.bigquery.ParameterizedQuery
-
Returns the
QueryJobConfiguration
that can be sent to BigQuery. - join(A, B) - Method in interface com.google.mu.util.concurrent.Fanout.Join2
- join(A, B) - Method in interface com.google.mu.util.concurrent.StructuredConcurrency.Join2
-
Deprecated.
- join(A, B, C) - Method in interface com.google.mu.util.concurrent.Fanout.Join3
- join(A, B, C) - Method in interface com.google.mu.util.concurrent.StructuredConcurrency.Join3
-
Deprecated.
- join(A, B, C, D) - Method in interface com.google.mu.util.concurrent.Fanout.Join4
- join(A, B, C, D) - Method in interface com.google.mu.util.concurrent.StructuredConcurrency.Join4
-
Deprecated.
- join(A, B, C, D, E) - Method in interface com.google.mu.util.concurrent.Fanout.Join5
- join(A, B, C, D, E) - Method in interface com.google.mu.util.concurrent.StructuredConcurrency.Join5
-
Deprecated.
- 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. - joining(String) - Static method in class com.google.mu.bigquery.ParameterizedQuery
-
Returns a collector that joins ParameterizedQuery elements using
delimiter
. - joining(String) - Static method in class com.google.mu.safesql.SafeQuery
-
Returns a collector that can join
SafeQuery
objects usingdelim
as the delimiter. - joining(String) - Static method in class com.google.mu.safesql.SafeSql
-
Returns a collector that joins SafeSql elements using
delimiter
.
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.collect.Selection
- list() - Static method in class com.google.mu.collect.Immutables
-
Deprecated.Returns the empty immutable list.
- list(E) - Static method in class com.google.mu.collect.Immutables
-
Deprecated.Returns an immutable list containing a single element.
- list(E, E) - Static method in class com.google.mu.collect.Immutables
-
Deprecated.Returns an immutable list containing the given elements, in order.
- list(E, E, E) - Static method in class com.google.mu.collect.Immutables
-
Deprecated.Returns an immutable list containing the given elements, in order.
- list(E, E, E, E) - Static method in class com.google.mu.collect.Immutables
-
Deprecated.Returns an immutable list containing the given elements, in order.
- list(E, E, E, E, E) - Static method in class com.google.mu.collect.Immutables
-
Deprecated.Returns an immutable list containing the given elements, in order.
- list(E, E, E, E, E, E) - Static method in class com.google.mu.collect.Immutables
-
Deprecated.Returns an immutable list containing the given elements, in order.
- list(E, E, E, E, E, E, E) - Static method in class com.google.mu.collect.Immutables
-
Deprecated.Returns an immutable list containing the given elements, in order.
- list(E, E, E, E, E, E, E, E) - Static method in class com.google.mu.collect.Immutables
-
Deprecated.Returns an immutable list containing the given elements, in order.
- list(E, E, E, E, E, E, E, E, E) - Static method in class com.google.mu.collect.Immutables
-
Deprecated.Returns an immutable list containing the given elements, in order.
- list(E, E, E, E, E, E, E, E, E, E) - Static method in class com.google.mu.collect.Immutables
-
Deprecated.Returns an immutable list containing the given elements, in order.
- list(E, E, E, E, E, E, E, E, E, E, E) - Static method in class com.google.mu.collect.Immutables
-
Deprecated.Returns an immutable list containing the given elements, in order.
- list(E, E, E, E, E, E, E, E, E, E, E, E, E...) - Static method in class com.google.mu.collect.Immutables
-
Deprecated.Returns an immutable list containing the given elements, in order.
- listIterator() - Method in class com.google.mu.collect.Chain
- listIterator(int) - Method in class com.google.mu.collect.Chain
- listValueOf(double...) - Static method in class com.google.mu.protobuf.util.MoreValues
-
Returns
ListValue
wrappingvalues
. - listValueOf(Struct...) - Static method in class com.google.mu.protobuf.util.MoreValues
-
Returns
ListValue
wrappingvalues
. - listValueOf(String...) - Static method in class com.google.mu.protobuf.util.MoreValues
-
Returns
ListValue
wrappingvalues
. - locate(double, double, double) - Method in interface com.google.mu.collect.BinarySearch.DoubleSearchTarget
-
Given a range of
[low..high]
inclusively withmedian
as the mid point of the binary search, locates the target. - locate(int, int, int) - Method in interface com.google.mu.collect.BinarySearch.IntSearchTarget
-
Given a range of
[low..high]
inclusively withmid
as the middle point of the binary search, locates the target. - locate(long, long, long) - Method in interface com.google.mu.collect.BinarySearch.LongSearchTarget
-
Given a range of
[low..high]
inclusively withmid
as the middle point of the binary search, locates the target.
M
- map() - Static method in class com.google.mu.collect.Immutables
-
Deprecated.Returns the empty map.
- 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
-
Deprecated.Maps
this
usingfunction
unless it wraps exception. - map(K, V) - Static method in class com.google.mu.collect.Immutables
-
Deprecated.Returns an immutable map containing a single entry.
- map(K, V, K, V) - Static method in class com.google.mu.collect.Immutables
-
Deprecated.Returns an immutable map containing the given entries, in order.
- map(K, V, K, V, K, V) - Static method in class com.google.mu.collect.Immutables
-
Deprecated.Returns an immutable map containing the given entries, in order.
- map(K, V, K, V, K, V, K, V) - Static method in class com.google.mu.collect.Immutables
-
Deprecated.Returns an immutable map containing the given entries, in order.
- map(K, V, K, V, K, V, K, V, K, V) - Static method in class com.google.mu.collect.Immutables
-
Deprecated.Returns an immutable map containing the given entries, in order.
- map(K, V, K, V, K, V, K, V, K, V, K, V) - Static method in class com.google.mu.collect.Immutables
-
Deprecated.Returns an immutable map containing the given entries, in order.
- map(K, V, K, V, K, V, K, V, K, V, K, V, K, V) - Static method in class com.google.mu.collect.Immutables
-
Deprecated.Returns an immutable map containing the given entries, in order.
- map(K, V, K, V, K, V, K, V, K, V, K, V, K, V, K, V) - Static method in class com.google.mu.collect.Immutables
-
Deprecated.Returns an immutable map containing the given entries, in order.
- map(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.collect.Immutables
-
Deprecated.Returns an immutable map containing the given entries, in order.
- map(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.collect.Immutables
-
Deprecated.Returns an immutable map containing the given entries, in order.
- map(T, T, T) - Method in interface com.google.mu.function.MapFrom3
- map(T, T, T, T) - Method in interface com.google.mu.function.MapFrom4
- map(T, T, T, T, T) - Method in interface com.google.mu.function.MapFrom5
- map(T, T, T, T, T, T) - Method in interface com.google.mu.function.MapFrom6
- map(T, T, T, T, T, T, T) - Method in interface com.google.mu.function.MapFrom7
- map(T, T, T, T, T, T, T, T) - Method in interface com.google.mu.function.MapFrom8
- MapFrom3<T,
R> - Interface in com.google.mu.function -
A 3-arg function of the signature of
(T, T, T) -> R
. - MapFrom4<T,
R> - Interface in com.google.mu.function -
A 4-arg function of the signature of
(T, T, T, T) -> R
. - MapFrom5<T,
R> - Interface in com.google.mu.function -
A 5-arg function of the signature of
(T, T, T, T, T) -> R
. - MapFrom6<T,
R> - Interface in com.google.mu.function -
A 6-arg function of the signature of
(T, T, T, T, T, T) -> R
. - MapFrom7<T,
R> - Interface in com.google.mu.function -
A 6-arg function of the signature of
(T, T, T, T, T, T, T) -> R
. - MapFrom8<T,
R> - Interface in com.google.mu.function -
A 6-arg function of the signature of
(T, T, T, T, T, T, T, T) -> R
. - 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 K, ? extends K1>, Function<? 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
, then collects the results using thedownstream
collector. - mapping(Function<? super T, ? extends Both<? extends A, ? extends B>>, BiCollector<A, B, R>) - Static method in class com.google.mu.util.stream.MoreCollectors
-
Analogous to
Collectors.mapping()
, applies a mapping function to each input element before accumulation, except that 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
- mapToInt(ToIntBiFunction<? super K, ? super V>) - Method in class com.google.mu.util.stream.BiStream
- mapToLong(ToLongBiFunction<? super K, ? super V>) - Method in class com.google.mu.util.stream.BiStream
- mapToObj(BiFunction<? super K, ? super V, ? extends T>) - Method in class com.google.mu.util.stream.BiStream
-
Returns a
Stream
consisting of the results of 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(String) - Method in class com.google.mu.util.StringFormat
-
Returns true if this format matches
input
entirely. - 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
. - matchesAllOf(CharSequence) - Method in interface com.google.mu.util.CharPredicate
-
Returns
true
if a character sequence contains only matching BMP characters. - matchesAnyOf(CharSequence) - Method in interface com.google.mu.util.CharPredicate
-
Returns
true
if a character sequence contains at least one matching BMP character. - matchesNoneOf(CharSequence) - Method in interface com.google.mu.util.CharPredicate
-
Returns
true
if a character sequence contains no matching BMP characters. - MAX_VALUE - Static variable in class com.google.mu.util.Ordinal
-
The maximum ordinal.
- maxBy(Comparator<? super K>, Comparator<? super V>) - Static method in class com.google.mu.util.stream.BiCollectors
-
Returns a
BiCollector
that finds the maximum pair according tokeyComparator
and thenvalueComparator
for equal keys. - maxByKey(Comparator<? super K>) - Static method in class com.google.mu.util.stream.BiCollectors
-
Returns a
BiCollector
that finds the pair with the maximum key according tocomparator
. - maxByValue(Comparator<? super V>) - Static method in class com.google.mu.util.stream.BiCollectors
-
Returns a
BiCollector
that finds the pair with the maximum value according tocomparator
. - maybe(CheckedBiFunction<? super A, ? super B, ? extends T, ? extends E>) - Static method in class com.google.mu.util.Maybe
-
Deprecated.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
-
Deprecated.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
-
Deprecated.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
-
Deprecated.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
-
Deprecated.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
-
Deprecated.Wraps
supplier
to be used for a stream of Maybe. - Maybe<T,
E> - Class in com.google.mu.util -
Deprecated.doesn't work well with futures, promises. And tunneling exception away from the call stack may cause confusing stack trace that misses the whereabout of the exception.
- maybeStream(CheckedBiFunction<? super A, ? super B, ? extends Stream<? extends T>, ? extends E>) - Static method in class com.google.mu.util.Maybe
-
Deprecated.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
-
Deprecated.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
-
Deprecated.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
-
Deprecated.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
-
Deprecated.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
-
Deprecated.Invokes
supplier
and wraps the returnedStream<T>
or thrown exception into a stream ofMaybe<T, E>
. - maybeToList() - Static method in class com.google.mu.util.Maybe
-
Deprecated.Collects a stream of
Maybe
to an immutableMaybe<List<T>, E>
, which will wrap the exception if any inputMaybe
is exceptional. - maybeToSet() - Static method in class com.google.mu.util.Maybe
-
Deprecated.Collects a stream of
Maybe
to an immutableMaybe<Set<T>, E>
, which will wrap the exception if any inputMaybe
is exceptional. - minBy(Comparator<? super K>, Comparator<? super V>) - Static method in class com.google.mu.util.stream.BiCollectors
-
Returns a
BiCollector
that finds the minimum pair according tokeyComparator
and thenvalueComparator
for equal keys. - minByKey(Comparator<? super K>) - Static method in class com.google.mu.util.stream.BiCollectors
-
Returns a
BiCollector
that finds the pair with the minimum key according tocomparator
. - minByValue(Comparator<? super V>) - Static method in class com.google.mu.util.stream.BiCollectors
-
Returns a
BiCollector
that finds the pair with the minimum value 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.
- minus(Ordinal) - Method in class com.google.mu.util.Ordinal
-
Returns the distance between
this
andthat
. - MoreCollections - Class in com.google.mu.collect
-
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. - MoreIterables - Class in com.google.mu.collect
-
Some additional utilities pertaining to
Iterable
. - MoreStreams - Class in com.google.mu.util.stream
-
Static utilities pertaining to
Stream
in addition to relevant utilities in JDK and Guava. - MoreStructs - Class in com.google.mu.protobuf.util
-
Additional utilities to help create
Struct
messages. - MoreValues - Class in com.google.mu.protobuf.util
-
Additional utilities to help create
Value
andListValue
messages. - multimap() - Static method in class com.google.mu.collect.Immutables
-
Deprecated.Returns the empty multimap.
- multimap(K, V) - Static method in class com.google.mu.collect.Immutables
-
Deprecated.Returns an immutable multimap containing a single entry.
- multimap(K, V, K, V) - Static method in class com.google.mu.collect.Immutables
-
Deprecated.Returns an immutable multimap containing the given entries, in order.
- multimap(K, V, K, V, K, V) - Static method in class com.google.mu.collect.Immutables
-
Deprecated.Returns an immutable multimap containing the given entries, in order.
- multimap(K, V, K, V, K, V, K, V) - Static method in class com.google.mu.collect.Immutables
-
Deprecated.Returns an immutable multimap containing the given entries, in order.
- multimap(K, V, K, V, K, V, K, V, K, V) - Static method in class com.google.mu.collect.Immutables
-
Deprecated.Returns an immutable multimap containing the given entries, in order.
- multipliedBy(double) - Method in class com.google.mu.util.concurrent.Retryer.Delay
-
Returns a new
Delay
with duration multiplied bymultiplier
. - multiset() - Static method in class com.google.mu.collect.Immutables
-
Deprecated.Returns the empty immutable multiset.
- multiset(E) - Static method in class com.google.mu.collect.Immutables
-
Deprecated.Returns an immutable multiset containing a single element.
- multiset(E, E) - Static method in class com.google.mu.collect.Immutables
-
Deprecated.Returns an immutable multiset containing the given elements, in order.
- multiset(E, E, E) - Static method in class com.google.mu.collect.Immutables
-
Deprecated.Returns an immutable multiset containing the given elements, in the "grouped iteration order" described in the class documentation.
- multiset(E, E, E, E) - Static method in class com.google.mu.collect.Immutables
-
Deprecated.Returns an immutable multiset containing the given elements, in the "grouped iteration order" described in the class documentation.
- multiset(E, E, E, E, E) - Static method in class com.google.mu.collect.Immutables
-
Deprecated.Returns an immutable multiset containing the given elements, in the "grouped iteration order" described in the class documentation.
- multiset(E, E, E, E, E, E, E...) - Static method in class com.google.mu.collect.Immutables
-
Deprecated.Returns an immutable multiset containing the given elements, in the "grouped iteration order" described in the class documentation.
N
- natural() - Static method in class com.google.mu.util.Ordinal
-
Returns the infinite stream of natural ordinals starting from "1st".
- nestedStruct(Table<String, String, ?>) - Method in class com.google.mu.protobuf.util.Structor
-
Returns a nested Struct of Struct equivalent to the
row map
oftable
. - newDaemonParallelizer(int) - Static method in class com.google.mu.util.concurrent.Parallelizer
-
Returns a new
Parallelizer
based on an ExecutorService that exits when the application is complete. - next() - Method in class com.google.mu.util.Ordinal
-
Returns the next ordinal.
- none() - Static method in interface com.google.mu.collect.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.collect.Selection
-
Converts to
Selection
from legacy code where an empty collection means all. - noneOf(String) - Static method in interface com.google.mu.util.CharPredicate
-
Returns a CharPredicate that matches any of
chars
. - not() - Method in interface com.google.mu.util.CharPredicate
-
Returns the negation of this
CharPredicate
. - 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. - notImmediatelyBetween(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. - notPrecededBy(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. - NULL - Static variable in class com.google.mu.protobuf.util.MoreValues
-
The
Value
for null. - nullableValueOf(String) - Static method in class com.google.mu.protobuf.util.MoreValues
O
- of() - Static method in class com.google.mu.util.stream.BiCollection
-
Deprecated.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(Enum<?>) - Static method in class com.google.mu.util.Ordinal
-
Returns instance corresponding to the ordinal of the Enum object
e
. - of(String) - Static method in class com.google.mu.bigquery.ParameterizedQuery
-
Returns a query using a compile-time constant query with no parameters.
- of(String) - Static method in class com.google.mu.safesql.SafeQuery
-
Returns a query using a compile-time constant query.
- of(String, Object...) - Static method in class com.google.mu.bigquery.ParameterizedQuery
-
Convenience method when you need to create the
ParameterizedQuery
inline, with both the query template and the arguments. - of(String, Object...) - Static method in class com.google.mu.safesql.SafeQuery
-
Returns a query using a constant query template filled with
args
. - of(String, Object...) - Static method in class com.google.mu.safesql.SafeSql
- 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
-
Deprecated.Returns a
BiCollection
forleft
andright
. - of(L, R, L, R) - Static method in class com.google.mu.util.stream.BiCollection
-
Deprecated.Returns a
BiCollection
for two pairs. - of(L, R, L, R, L, R) - Static method in class com.google.mu.util.stream.BiCollection
-
Deprecated.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
-
Deprecated.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
-
Deprecated.Returns a
BiCollection
for five pairs. - of(T) - Static method in class com.google.mu.collect.Chain
-
Returns a Chain with a single element.
- of(T) - Static method in class com.google.mu.util.Maybe
-
Deprecated.Creates a
Maybe
forvalue
. - of(T, T...) - Static method in class com.google.mu.collect.Chain
-
Returns a Chain with
first
followed byremaining
. - ofMillis(long) - Static method in class com.google.mu.util.concurrent.Retryer.Delay
-
Shorthand for
of(Duration.ofMillis(millis))
. - ofParam(Object) - Static method in class com.google.mu.safesql.SafeSql
-
Convenience method equivalent to
of("{param}", param)
, which is translated to a single question mark ('?') withparam
being the value. - 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.collect.Selection
-
Returns a selection of
choices
. - onlyElement(Function<? super T, ? extends R>) - Static method in class com.google.mu.util.stream.MoreCollectors
-
Returns collector that collects the single element from the input.
- onlyElements(MapFrom3<? super T, ? extends R>) - Static method in class com.google.mu.util.stream.MoreCollectors
-
Same as
MoreCollectors.combining(MapFrom3)
. - onlyElements(MapFrom4<? super T, ? extends R>) - Static method in class com.google.mu.util.stream.MoreCollectors
-
Same as
MoreCollectors.combining(MapFrom4)
. - onlyElements(MapFrom5<? super T, ? extends R>) - Static method in class com.google.mu.util.stream.MoreCollectors
-
Same as
MoreCollectors.combining(MapFrom5)
. - onlyElements(MapFrom6<? super T, ? extends R>) - Static method in class com.google.mu.util.stream.MoreCollectors
-
Same as
MoreCollectors.combining(MapFrom6)
. - onlyElements(MapFrom7<? super T, ? extends R>) - Static method in class com.google.mu.util.stream.MoreCollectors
-
Same as
MoreCollectors.combining(MapFrom7)
. - onlyElements(MapFrom8<? super T, ? extends R>) - Static method in class com.google.mu.util.stream.MoreCollectors
-
Same as
MoreCollectors.combining(MapFrom7)
. - onlyElements(BiFunction<? super T, ? super T, ? extends R>) - Static method in class com.google.mu.util.stream.MoreCollectors
-
Same as
MoreCollectors.combining(BiFunction)
. - 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()
. - optionally(String, Optional<?>) - Static method in class com.google.mu.bigquery.ParameterizedQuery
-
An optional query that's only rendered if
arg
is present; otherwise returnsParameterizedQuery.EMPTY
. - optionally(String, Optional<?>) - Static method in class com.google.mu.safesql.SafeQuery
-
An optional query that's only rendered if
arg
is present; otherwise returnsSafeQuery.EMPTY
. - optionally(String, Optional<?>) - Static method in class com.google.mu.safesql.SafeSql
-
An optional query that's only rendered if
param
is present; otherwise returnsSafeSql.EMPTY
. - Optionals - Class in com.google.mu.util
-
Utilities pertaining to
Optional
. - or() - Static method in class com.google.mu.bigquery.ParameterizedQuery
-
A collector that joins boolean query snippets using
OR
operator. - or() - Static method in class com.google.mu.safesql.SafeQuery
-
A collector that joins boolean query snippets using
OR
operator. - or() - Static method in class com.google.mu.safesql.SafeSql
-
A collector that joins boolean query snippets using
OR
operator. - 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
-
Deprecated.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
-
Deprecated.Returns the encapsulated value or throws exception.
- orElseThrow(String, Object...) - Method in class com.google.mu.util.BiOptional
-
Ensures that the pair must be present or else throws
NoSuchElementException
withmessage
formatted withargs
. - orElseThrow(Function<? super E, X>) - Method in class com.google.mu.util.Maybe
-
Deprecated.Either returns success value, or throws exception created by
exceptionWrapper
. - orElseThrow(Function<String, E>, String, Object...) - Method in class com.google.mu.util.BiOptional
-
Ensures that the pair must be present or else throws the exception returned by
exceptionFactory
withmessage
formatted withargs
. - 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
- Package Specification - Search tag in package com.google.mu.annotations
- Section
- Package Specification - Search tag in package com.google.mu.bigquery
- Section
- Package Specification - Search tag in package com.google.mu.collect
- Section
- Package Specification - Search tag in package com.google.mu.function
- Section
- Package Specification - Search tag in package com.google.mu.protobuf.util
- Section
- Package Specification - Search tag in package com.google.mu.safesql
- Section
- Package Specification - Search tag in package com.google.mu.time
- Section
- Package Specification - Search tag in package com.google.mu.util
- Section
- Package Specification - Search tag in package com.google.mu.util.concurrent
- Section
- Package Specification - Search tag in package com.google.mu.util.graph
- Section
- Package Specification - Search tag in package com.google.mu.util.stream
- Section
- pairwise(Iterable<A>, Iterable<B>, BiPredicate<? super A, ? super B>) - Static method in class com.google.mu.collect.MoreIterables
-
Returns true if
left
andright
both contain the same number of elements, and each pair of corresponding elements matches according to thematcher
predicate. - 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
-
Utility to support structured concurrency for IO-bound subtasks of a single unit of work, while limiting the max concurrency.
- 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). - ParameterizedQuery - Class in com.google.mu.bigquery
-
Encapsulates a BigQuery parameterized query.
- parse(String) - Method in class com.google.mu.collect.Selection.Parser
- parse(String) - Method in class com.google.mu.util.StringFormat
-
Parses
input
against the pattern. - parse(String, CheckedFunction<String, ? extends T, E>) - Method in class com.google.mu.collect.Selection.Parser
-
Parses
string
into aSelection
by treating the single'*'
character asSelection.all()
, and delegating toelementParser
to parse each explicit selection element. - parse(String, MapFrom3<? super String, ? extends R>) - Method in class com.google.mu.util.StringFormat
-
Similar to
AbstractStringFormat.parse(String, BiFunction)
, but parsesinput
and appliesmapper
with the 3 placeholder values in this string format. - parse(String, MapFrom4<? super String, ? extends R>) - Method in class com.google.mu.util.StringFormat
-
Similar to
AbstractStringFormat.parse(String, BiFunction)
, but parsesinput
and appliesmapper
with the 4 placeholder values in this string format. - parse(String, MapFrom5<? super String, ? extends R>) - Method in class com.google.mu.util.StringFormat
-
Similar to
AbstractStringFormat.parse(String, BiFunction)
, but parsesinput
and appliesmapper
with the 5 placeholder values in this string format. - parse(String, MapFrom6<? super String, ? extends R>) - Method in class com.google.mu.util.StringFormat
-
Similar to
AbstractStringFormat.parse(String, BiFunction)
, but parsesinput
and appliesmapper
with the 6 placeholder values in this string format. - parse(String, MapFrom7<? super String, ? extends R>) - Method in class com.google.mu.util.StringFormat
-
Similar to
AbstractStringFormat.parse(String, BiFunction)
, but parsesinput
and appliesmapper
with the 7 placeholder values in this string format. - parse(String, MapFrom8<? super String, ? extends R>) - Method in class com.google.mu.util.StringFormat
-
Similar to
AbstractStringFormat.parse(String, BiFunction)
, but parsesinput
and appliesmapper
with the 8 placeholder values in this string format. - parse(String, BiFunction<? super String, ? super String, ? extends R>) - Method in class com.google.mu.util.StringFormat
-
Parses
input
and appliesmapper
with the two placeholder values in this string format. - parse(String, Function<? super String, ? extends R>) - Method in class com.google.mu.util.StringFormat
-
Parses
input
and applies themapper
function with the single placeholder value in this string format. - parseGreedy(String, MapFrom3<? super String, ? extends R>) - Method in class com.google.mu.util.StringFormat
-
Similar to
AbstractStringFormat.parse(String, MapFrom3)
, parsesinput
and appliesmapper
with the 3 placeholder values in this format string, but matches the placeholders backwards from the end to the beginning of the input string. - parseGreedy(String, MapFrom4<? super String, ? extends R>) - Method in class com.google.mu.util.StringFormat
-
Similar to
AbstractStringFormat.parse(String, MapFrom4)
, parsesinput
and appliesmapper
with the 3 placeholder values in this format string, but matches the placeholders backwards from the end to the beginning of the input string. - parseGreedy(String, MapFrom5<? super String, ? extends R>) - Method in class com.google.mu.util.StringFormat
-
Similar to
AbstractStringFormat.parse(String, MapFrom5)
, parsesinput
and appliesmapper
with the 5 placeholder values in this format string, but matches the placeholders backwards from the end to the beginning of the input string. - parseGreedy(String, BiFunction<? super String, ? super String, ? extends R>) - Method in class com.google.mu.util.StringFormat
-
Similar to
AbstractStringFormat.parse(String, BiFunction)
, parsesinput
and appliesmapper
with the two placeholder values in this format string, but matches the placeholders backwards from the end to the beginning of the input string. - parseGreedy(String, Function<? super String, ? extends R>) - Method in class com.google.mu.util.StringFormat
-
Similar to
AbstractStringFormat.parse(String, Function)
, parsesinput
and appliesmapper
with the single placeholder value in this format string, but matches the placeholders backwards from the end to the beginning of the input string. - parseLocalDate(String) - Static method in class com.google.mu.time.DateTimeFormats
-
Parses
dateString
asLocalDate
. - parseOffsetDateTime(String) - Static method in class com.google.mu.time.DateTimeFormats
-
Parses
dateTimeString
toOffsetDateTime
using heuristics in this class to infer theDateTimeFormatter
for common formats. - parseOrThrow(String, MapFrom3<? super String, R>) - Method in class com.google.mu.util.StringFormat
-
Similar to
AbstractStringFormat.parseOrThrow(String, BiFunction)
, but parsesinput
and appliesmapper
with the 3 placeholder values in this format string. - parseOrThrow(String, MapFrom4<? super String, R>) - Method in class com.google.mu.util.StringFormat
-
Similar to
AbstractStringFormat.parseOrThrow(String, BiFunction)
, but parsesinput
and appliesmapper
with the 4 placeholder values in this string format. - parseOrThrow(String, MapFrom5<? super String, R>) - Method in class com.google.mu.util.StringFormat
-
Similar to
AbstractStringFormat.parseOrThrow(String, BiFunction)
, but parsesinput
and appliesmapper
with the 5 placeholder values in this string format. - parseOrThrow(String, MapFrom6<? super String, R>) - Method in class com.google.mu.util.StringFormat
-
Similar to
AbstractStringFormat.parseOrThrow(String, BiFunction)
, but parsesinput
and appliesmapper
with the 6 placeholder values in this string format. - parseOrThrow(String, MapFrom7<? super String, R>) - Method in class com.google.mu.util.StringFormat
-
Similar to
AbstractStringFormat.parseOrThrow(String, BiFunction)
, but parsesinput
and appliesmapper
with the 7 placeholder values in this string format. - parseOrThrow(String, MapFrom8<? super String, R>) - Method in class com.google.mu.util.StringFormat
-
Similar to
AbstractStringFormat.parseOrThrow(String, BiFunction)
, but parsesinput
and appliesmapper
with the 8 placeholder values in this string format. - parseOrThrow(String, BiFunction<? super String, ? super String, R>) - Method in class com.google.mu.util.StringFormat
-
Parses
input
and appliesmapper
with the two placeholder values in this format string. - parseOrThrow(String, Function<? super String, R>) - Method in class com.google.mu.util.StringFormat
-
Parses
input
and appliesmapper
with the single placeholder value in this format string. - parser() - Static method in interface com.google.mu.collect.Selection
-
Returns the default parser, using
','
as delimiter of elements. - parseToInstant(String) - Static method in class com.google.mu.time.DateTimeFormats
-
Parses
dateTimeString
toInstant
. - parseZonedDateTime(String) - Static method in class com.google.mu.time.DateTimeFormats
-
Parses
dateTimeString
toZonedDateTime
using heuristics in this class to infer theDateTimeFormatter
for common formats. - partitioningBy(BiPredicate<? super K, ? super V>) - Static method in class com.google.mu.util.stream.BiCollectors
-
Returns a BiCollector that partitions the incoming pairs into two groups: elements that match
predicate
, and those that don't. - partitioningBy(BiPredicate<? super K, ? super V>, BiCollector<? super K, ? super V, ? extends R>) - Static method in class com.google.mu.util.stream.BiCollectors
-
Returns a BiCollector that partitions the incoming pairs into two groups: elements that match
predicate
, and those that don't, and usedownstream
collector to collect the pairs. - partitioningBy(BiPredicate<? super K, ? super V>, BiCollector<? super K, ? super V, ? extends T>, BiCollector<? super K, ? super V, ? extends F>) - Static method in class com.google.mu.util.stream.BiCollectors
-
Returns a BiCollector that partitions the incoming pairs into two groups: elements that match
predicate
, and those that don't, and useifTrue
andifFalse
downstream collectors respectively to collect the pairs. - partitioningBy(Predicate<? super E>, Collector<E, ?, ? extends 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. - partitioningBy(Predicate<? super E>, Collector<E, A1, ? extends T>, Collector<E, A2, ? extends F>) - 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, and usedownstreamIfTrue
anddownstreamIfFalse
respectively to collect the elements. - partitioningBy(Predicate<? super T>) - Static method in class com.google.mu.util.stream.GuavaCollectors
-
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
-
Return a
Pattern
equivalent to thisPattern
, except it will fail to match if thefollowing
pattern can't find a match in the substring after the current match. - 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). - precededBy(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
lookahead
string. - 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
. - PrefixSearchTable<K,
V> - Class in com.google.mu.collect -
A lookup table that stores prefix (a list of keys of type
K
) -> value mappings. - PrefixSearchTable.Builder<K,
V> - Class in com.google.mu.collect -
Builder of
PrefixSearchTable
. - 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. - prepareCall(Connection) - Method in class com.google.mu.safesql.SafeSql
-
Returns a
CallableStatement
with the encapsulated sql and parameters. - prepareStatement(Connection) - Method in class com.google.mu.safesql.SafeSql
-
Returns a
PreparedStatement
with the encapsulated sql and parameters. - previous() - Method in class com.google.mu.util.Ordinal
-
Returns the previous ordinal.
- priority() - Method in class com.google.mu.util.concurrent.StructuredConcurrencyExecutorPlugin
-
Returns the priority of this plugin when multiple plugins are available.
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]
. - rangeOf(K) - Method in class com.google.mu.collect.BinarySearch.Table
-
Finds the range of elements that match
target
. - 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, MapFrom3<? super Substring.Match, ?>) - Method in class com.google.mu.util.StringFormat
-
Scans
input
and replaces all matches using thereplacement
function. - replaceAllFrom(String, MapFrom4<? super Substring.Match, ?>) - Method in class com.google.mu.util.StringFormat
-
Scans
input
and replaces all matches using thereplacement
function. - replaceAllFrom(String, MapFrom5<? super Substring.Match, ?>) - Method in class com.google.mu.util.StringFormat
-
Scans
input
and replaces all matches using thereplacement
function. - replaceAllFrom(String, MapFrom6<? super Substring.Match, ?>) - Method in class com.google.mu.util.StringFormat
-
Scans
input
and replaces all matches using thereplacement
function. - replaceAllFrom(String, MapFrom7<? super Substring.Match, ?>) - Method in class com.google.mu.util.StringFormat
-
Scans
input
and replaces all matches using thereplacement
function. - replaceAllFrom(String, MapFrom8<? super Substring.Match, ?>) - Method in class com.google.mu.util.StringFormat
-
Scans
input
and replaces all matches using thereplacement
function. - replaceAllFrom(String, BiFunction<? super Substring.Match, ? super Substring.Match, ?>) - Method in class com.google.mu.util.StringFormat
-
Scans
input
and replaces all matches using thereplacement
function. - replaceAllFrom(String, Function<? super Substring.Match, ?>) - Method in class com.google.mu.util.StringFormat
-
Scans
input
and replaces all matches using thereplacement
function. - 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
. - replaceFrom(String, Function<? super Substring.Match, ? extends CharSequence>) - Method in class com.google.mu.util.Substring.Pattern
-
Returns a new string with the substring matched by
this
replaced by the return value ofreplacementFunction
. - 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
. - RequiresBigQuery - Annotation Interface in com.google.mu.annotations
-
Documents that the annotated class needs BigQuery client dependency and is part of the mug-bigquery artifact.
- RequiresGuava - Annotation Interface in com.google.mu.annotations
-
Documents that the annotated class needs Guava dependency and is part of the mug-guava artifact.
- RequiresProtobuf - Annotation Interface in com.google.mu.annotations
-
Documents that the annotated class needs Protobuf dependency and is part of the mug-protobuf artifact.
- 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.
- run() - Method in interface com.google.mu.function.CheckedRunnable
- run() - Method in class com.google.mu.util.Funnel
-
Deprecated.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.
- run(BigQuery.JobOption...) - Method in class com.google.mu.bigquery.ParameterizedQuery
-
Sends this query to BigQuery using the default client configuration with
options
to control BigQuery jobs. - runLengthEncode(Stream<T>, BiPredicate<? super T, ? super T>) - Static method in class com.google.mu.util.stream.MoreStreams
-
Groups consecutive items in
stream
using thesameGroup
predicate, along with the group's run length (number of items).
S
- SafeQuery - Class in com.google.mu.safesql
-
A piece of provably-safe (from SQL injection) query string constructed by the combination of a compile-time string constant, other SafeQuery, safe literal values (booleans, enum constant names, numbers etc.), and/or mandatorily-quoted, auto-escaped string values.
- SafeQuery.Translator - Class in com.google.mu.safesql
-
An SPI class for subclasses to provide additional translation from placeholder values to safe query strings.
- SafeSql - Class in com.google.mu.safesql
-
An injection-safe parameterized SQL, constructed using compile-time enforced templates and can be used to
create
PreparedStatement
. - scan(String) - Method in class com.google.mu.util.StringFormat
-
Scans the
input
string and extracts all matched placeholders in this string format. - scan(String, MapFrom3<? super String, ? extends R>) - Method in class com.google.mu.util.StringFormat
-
Scans the
input
string and extracts all matches of this string format. - scan(String, MapFrom4<? super String, ? extends R>) - Method in class com.google.mu.util.StringFormat
-
Scans the
input
string and extracts all matches of this string format. - scan(String, MapFrom5<? super String, ? extends R>) - Method in class com.google.mu.util.StringFormat
-
Scans the
input
string and extracts all matches of this string format. - scan(String, MapFrom6<? super String, ? extends R>) - Method in class com.google.mu.util.StringFormat
-
Scans the
input
string and extracts all matches of this string format. - scan(String, MapFrom7<? super String, ? extends R>) - Method in class com.google.mu.util.StringFormat
-
Scans the
input
string and extracts all matches of this string format. - scan(String, MapFrom8<? super String, ? extends R>) - Method in class com.google.mu.util.StringFormat
-
Scans the
input
string and extracts all matches of this string format. - scan(String, BiFunction<? super String, ? super String, ? extends R>) - Method in class com.google.mu.util.StringFormat
-
Scans the
input
string and extracts all matches of this string format. - scan(String, Function<? super String, ? extends R>) - Method in class com.google.mu.util.StringFormat
-
Scans the
input
string and extracts all matches of this string format. - scanAndCollectFrom(String, BiCollector<? super String, ? super String, R>) - Method in class com.google.mu.util.StringFormat
-
Scans the
input
string and collects all pairs of placeholders defined by this string format usingcollector
. - scanAndCollectFrom(String, Collector<? super String, ?, R>) - Method in class com.google.mu.util.StringFormat
-
Scans the
input
string and collects all matches of this string format usingcollector
. - second() - Static method in class com.google.mu.util.Ordinal
-
Returns the second ordinal.
- Selection<T> - Interface in com.google.mu.collect
- Selection.Parser - Class in com.google.mu.collect
-
Parser for
Selection
. - 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. - set() - Static method in class com.google.mu.collect.Immutables
-
Deprecated.Returns the empty immutable set.
- set(E) - Static method in class com.google.mu.collect.Immutables
-
Deprecated.Returns an immutable set containing
element
. - set(E, E) - Static method in class com.google.mu.collect.Immutables
-
Deprecated.Returns an immutable set containing the given elements, minus duplicates, in the order each was first specified.
- set(E, E, E) - Static method in class com.google.mu.collect.Immutables
-
Deprecated.Returns an immutable set containing the given elements, minus duplicates, in the order each was first specified.
- set(E, E, E, E) - Static method in class com.google.mu.collect.Immutables
-
Deprecated.Returns an immutable set containing the given elements, minus duplicates, in the order each was first specified.
- set(E, E, E, E, E) - Static method in class com.google.mu.collect.Immutables
-
Deprecated.Returns an immutable set containing the given elements, minus duplicates, in the order each was first specified.
- set(E, E, E, E, E, E, E...) - Static method in class com.google.mu.collect.Immutables
-
Deprecated.Returns an immutable set containing the given elements, minus duplicates, in the order each was first specified.
- 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.collect.Chain
-
Returns the size of the chain.
- size() - Method in class com.google.mu.util.stream.BiCollection
-
Deprecated.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 A, ? super B>) - Method in class com.google.mu.util.BiOptional
-
If a pair of values is present and matches
predicate
, the pair is skipped (returns empty). - skipIf(BiPredicate<? super A, ? super B>) - Method in interface com.google.mu.util.Both
-
If the pair matches
predicate
, it's skipped (returns empty). - 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(Comparator<? super K>, Comparator<? super V>) - Method in class com.google.mu.util.stream.BiStream
-
Returns a
BiStream
consisting of the pairs in this stream, in the order produced by applying thebyKey
comparator on the keys of each pair, and then thebyValue
comparator on the values of pairs with equal keys. - sortedBy(BiFunction<? super K, ? super V, T>, Comparator<? super T>) - 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 result of applying thesortKeyFunction
. - 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. - sortedMap() - Static method in class com.google.mu.collect.Immutables
-
Deprecated.Returns the empty sorted map.
- sortedMap(K, V) - Static method in class com.google.mu.collect.Immutables
-
Deprecated.Returns an immutable map containing a single entry.
- sortedMap(K, V, K, V) - Static method in class com.google.mu.collect.Immutables
-
Deprecated.Returns an immutable sorted map containing the given entries, sorted by the natural ordering of their keys.
- sortedMap(K, V, K, V, K, V) - Static method in class com.google.mu.collect.Immutables
-
Deprecated.Returns an immutable sorted map containing the given entries, sorted by the natural ordering of their keys.
- sortedMap(K, V, K, V, K, V, K, V) - Static method in class com.google.mu.collect.Immutables
-
Deprecated.Returns an immutable sorted map containing the given entries, sorted by the natural ordering of their keys.
- sortedMap(K, V, K, V, K, V, K, V, K, V) - Static method in class com.google.mu.collect.Immutables
-
Deprecated.Returns an immutable sorted map containing the given entries, sorted by the natural ordering of their keys.
- sortedMap(K, V, K, V, K, V, K, V, K, V, K, V) - Static method in class com.google.mu.collect.Immutables
-
Deprecated.Returns an immutable sorted map containing the given entries, sorted by the natural ordering of their keys.
- sortedMap(K, V, K, V, K, V, K, V, K, V, K, V, K, V) - Static method in class com.google.mu.collect.Immutables
-
Deprecated.Returns an immutable sorted map containing the given entries, sorted by the natural ordering of their keys.
- sortedMap(K, V, K, V, K, V, K, V, K, V, K, V, K, V, K, V) - Static method in class com.google.mu.collect.Immutables
-
Deprecated.Returns an immutable sorted map containing the given entries, sorted by the natural ordering of their keys.
- sortedMap(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.collect.Immutables
-
Deprecated.Returns an immutable sorted map containing the given entries, sorted by the natural ordering of their keys.
- sortedMap(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.collect.Immutables
-
Deprecated.Returns an immutable sorted map containing the given entries, sorted by the natural ordering of their keys.
- span(String) - Static method in class com.google.mu.util.StringFormat
-
Returns a
Substring.Pattern
spanning the substring matchingformat
. - 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. - spliterator() - Method in class com.google.mu.collect.Chain
- 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
. - startsWith(String) - Method in class com.google.mu.util.Substring.Match
-
Returns true if this match starts with the given
prefix
. - stream() - Method in class com.google.mu.collect.Chain
-
Returns a lazy stream of the elements in this list.
- 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
-
Deprecated.Streams over this
BiCollection
. - StringFormat - Class in com.google.mu.util
-
A string parser to extract placeholder values from input strings according to a format string.
- StringFormat(String) - Constructor for class com.google.mu.util.StringFormat
-
Constructs a StringFormat with placeholders in the syntax of
"{foo}"
. - StringFormat.Interpolator<T> - Interface in com.google.mu.util
-
A functional SPI interface for custom interpolation.
- StringFormat.Template<T> - Interface in com.google.mu.util
-
A template that will produce instances of type
T
, after filling the template placeholders with the given variadic parameters. - StringFormat.To<T> - Interface in com.google.mu.util
-
Deprecated.Use
StringFormat.Template
instead - 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. - struct(CharSequence, Object) - Method in class com.google.mu.protobuf.util.Structor
-
Returns a Struct with
name
andvalue
, withvalue
converted usingStructor.toValue(java.lang.Object)
. - struct(CharSequence, Object, CharSequence, Object) - Method in class com.google.mu.protobuf.util.Structor
-
Returns a Struct equivalent to
{k1:v1, k2:v2}
. - struct(CharSequence, Object, CharSequence, Object, CharSequence, Object) - Method in class com.google.mu.protobuf.util.Structor
-
Returns a Struct equivalent to
{k1:v1, k2:v2, k3:v3}
. - struct(CharSequence, Object, CharSequence, Object, CharSequence, Object, CharSequence, Object) - Method in class com.google.mu.protobuf.util.Structor
-
Returns a Struct equivalent to
{k1:v1, k2:v2, k3:v3, k4:v4}
. - struct(CharSequence, Object, CharSequence, Object, CharSequence, Object, CharSequence, Object, CharSequence, Object) - Method in class com.google.mu.protobuf.util.Structor
-
Returns a Struct equivalent to
{k1:v1, k2:v2, k3:v3, k4:v4, k5:v5}
. - struct(CharSequence, Object, CharSequence, Object, CharSequence, Object, CharSequence, Object, CharSequence, Object, CharSequence, Object) - Method in class com.google.mu.protobuf.util.Structor
-
Returns a Struct equivalent to
{k1:v1, k2:v2, k3:v3, k4:v4, k5:v5, k6:v6}
. - struct(String, boolean) - Static method in class com.google.mu.protobuf.util.MoreStructs
-
Returns a Struct with
name
andvalue
. - struct(String, double) - Static method in class com.google.mu.protobuf.util.MoreStructs
-
Returns a Struct with
name
andvalue
. - struct(String, ListValue) - Static method in class com.google.mu.protobuf.util.MoreStructs
-
Returns a Struct with
name
andvalue
. - struct(String, Struct) - Static method in class com.google.mu.protobuf.util.MoreStructs
-
Returns a Struct with
name
andvalue
. - struct(String, Value) - Static method in class com.google.mu.protobuf.util.MoreStructs
-
Returns a Struct with
name
andvalue
. - struct(String, String) - Static method in class com.google.mu.protobuf.util.MoreStructs
-
Returns a Struct with
name
andvalue
. - struct(Map<String, ?>) - Method in class com.google.mu.protobuf.util.Structor
-
Returns a Struct equivalent to
map
. - StructBuilder - Class in com.google.mu.protobuf.util
-
A builder that supports building heterogeneous
Struct
more conveniently, while eliding most of the intermediary and verboseValue
creation. - StructBuilder() - Constructor for class com.google.mu.protobuf.util.StructBuilder
- Structor - Class in com.google.mu.protobuf.util
-
A helper that makes
Struct
s andValue
s from POJOs. - Structor() - Constructor for class com.google.mu.protobuf.util.Structor
- StructuredConcurrency - Class in com.google.mu.util.concurrent
-
Deprecated.Use
Fanout
instead. - StructuredConcurrency() - Constructor for class com.google.mu.util.concurrent.StructuredConcurrency
-
Deprecated.Constructor using the default virtual thread executor to run the concurrent operations.
- StructuredConcurrency(ExecutorService) - Constructor for class com.google.mu.util.concurrent.StructuredConcurrency
-
Deprecated.Constructor using
executor
to run concurrent operations. - StructuredConcurrency.Join2<A,
B, - Interface in com.google.mu.util.concurrentR, X> -
Deprecated.Function to join two results from concurrent operations.
- StructuredConcurrency.Join3<A,
B, - Interface in com.google.mu.util.concurrentC, R, X> -
Deprecated.Function to join three results from concurrent operations.
- StructuredConcurrency.Join4<A,
B, - Interface in com.google.mu.util.concurrentC, D, R, X> -
Deprecated.Function to join four results from concurrent operations.
- StructuredConcurrency.Join5<A,
B, - Interface in com.google.mu.util.concurrentC, D, E, R, X> -
Deprecated.Function to join five results from concurrent operations.
- StructuredConcurrencyExecutorPlugin - Class in com.google.mu.util.concurrent
-
SPI Used by
ServiceLoader
to plug in the executor used byFanout
. - StructuredConcurrencyExecutorPlugin() - Constructor for class com.google.mu.util.concurrent.StructuredConcurrencyExecutorPlugin
- StructuredConcurrencyExecutorPlugin.Priority - Enum Class in com.google.mu.util.concurrent
-
Plugin priority from low to high.
- subList(int, int) - Method in class com.google.mu.collect.Chain
- 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.BoundStyle - Enum Class in com.google.mu.util
-
The style of the bounds of a match.
- 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.
T
- table() - Static method in class com.google.mu.collect.Immutables
-
Deprecated.Returns an empty immutable table.
- table(R, C, V) - Static method in class com.google.mu.collect.Immutables
-
Deprecated.Returns an immutable table containing a single cell.
- table(R, C, V, R, C, V) - Static method in class com.google.mu.collect.Immutables
-
Deprecated.Returns an immutable table containing two cells.
- template(String) - Static method in class com.google.mu.bigquery.ParameterizedQuery
-
Returns a template of
QueryJobConfiguration
based on thetemplate
string. - template(String) - Static method in class com.google.mu.safesql.GoogleSql
-
Much like
SafeQuery.template(java.lang.String)
, but with additional GoogleSQL translation rules. - template(String) - Static method in class com.google.mu.safesql.SafeQuery
-
Creates a template with the placeholders to be filled by subsequent
StringFormat.To.with(java.lang.Object...)
calls. - template(String) - Static method in class com.google.mu.safesql.SafeSql
-
Returns a template of
SafeSql
based on thetemplate
string. - template(String, StringFormat.Interpolator<? extends T>) - Static method in class com.google.mu.util.StringFormat
-
Returns a go/jep-430 style template of
T
produced by interpolating arguments into thetemplate
string, using the giveninterpolator
function. - TemplateFormatMethod - Annotation Interface in com.google.mu.annotations
-
Annotates a method that uses a template string and fills the "{placeholder}"s in the template with arguments.
- TemplateString - Annotation Interface in com.google.mu.annotations
-
Used to annotate the template string parameter of a
@TemplateFormatMethod
method. - 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(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
-
Deprecated.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.
- to(Function<? super String, ? extends T>, String) - Static method in class com.google.mu.util.StringFormat
-
Returns a factory of type
T
usingformat
string as the template, whose curly-braced placeholders will be filled with the template arguments and then passed to thecreator
function to create theT
instances. - 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
-
Deprecated.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
. - toBuilder() - Method in class com.google.mu.collect.PrefixSearchTable
-
Returns a new builder initialized with the same prefix mappings in this table.
- toCase(CaseFormat, String) - Static method in class com.google.mu.util.CaseBreaker
-
Converts
input
string to using the givenCaseFormat
. - toDisjointRanges() - Static method in class com.google.mu.util.stream.GuavaCollectors
-
Returns a BiCollector that merges values mapped to overlapping ranges into a
Chain
, which is an immutableList
that may have been deeplyconcatenated
. - toDisjointRanges(BinaryOperator<V>) - Static method in class com.google.mu.util.stream.GuavaCollectors
-
Returns a BiCollector that merges values mapped to overlapping ranges using the
merger
function and builds aBiStream
with disjoint ranges and the corresponding merged values. - toDisjointRanges(Collector<V, ?, R>) - Static method in class com.google.mu.util.stream.GuavaCollectors
-
Returns a BiCollector that collects values mapped to overlapping ranges using
valueCollector
, and builds aBiStream
with disjoint ranges and the corresponding collector results. - 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. - toEntry() - Method in interface com.google.mu.util.Both
-
Returns an immutable
Map.Entry
holding the pair of values. - toImmutableBiMap() - Static method in class com.google.mu.util.stream.GuavaCollectors
-
Returns a
BiCollector
that collects the key-value pairs into anImmutableBiMap
. - toImmutableBiMap(Function<? super T, ? extends Both<? extends K, ? extends V>>) - Static method in class com.google.mu.util.stream.GuavaCollectors
-
Returns a collector that first maps each input into a key-value pair, and then collects them into a
ImmutableBiMap
. - toImmutableListMultimap() - Static method in class com.google.mu.util.stream.GuavaCollectors
-
Returns a
BiCollector
that collects the key-value pairs into anImmutableListMultimap
. - toImmutableListMultimap(Function<? super T, ? extends Both<? extends K, ? extends V>>) - Static method in class com.google.mu.util.stream.GuavaCollectors
-
Returns a collector that first maps each input into a key-value pair, and then collects them into a
ImmutableListMultimap
. - toImmutableMap() - Static method in class com.google.mu.util.stream.GuavaCollectors
-
Returns a
BiCollector
that collects the key-value pairs into anImmutableMap
. - toImmutableMap(BinaryOperator<V>) - Static method in class com.google.mu.util.stream.GuavaCollectors
-
Returns a
BiCollector
that collects the key-value pairs into anImmutableMap
usingvalueMerger
to merge values of duplicate keys. - toImmutableMap(Function<? super T, ? extends Both<? extends K, ? extends V>>) - Static method in class com.google.mu.util.stream.GuavaCollectors
-
Returns a collector that first maps each input into a key-value pair, and then collects them into a
ImmutableMap
. - toImmutableMap(Collector<V1, ?, V>) - Static method in class com.google.mu.util.stream.GuavaCollectors
-
Returns a
BiCollector
that collects the key-value pairs into anImmutableMap
usingvalueCollector
to collect values of identical keys into a final value of typeV
. - toImmutableMapIgnoringDuplicateEntries(Function<? super T, ? extends Both<? extends K, ? extends V>>) - Static method in class com.google.mu.util.stream.GuavaCollectors
-
Returns a collector that first maps each input into a key-value pair, and then collects them into a
ImmutableListMultimap
. - toImmutableMapIgnoringDuplicateEntries(Function<? super T, ? extends K>, Function<? super T, ? extends V>) - Static method in class com.google.mu.util.stream.GuavaCollectors
-
Returns a
Collector
that accumulates elements into anImmutableMap
whose keys and values are the result of applying the provided mapping functions to the input elements. - toImmutableMultiset(ToIntFunction<? super V>) - Static method in class com.google.mu.util.stream.GuavaCollectors
-
Returns a
BiCollector
that collects the key-value pairs into anImmutableMultiset
whose elements are the keys, with counts equal to the result of applyingcountFunction
to the values. - toImmutableRangeMap() - Static method in class com.google.mu.util.stream.GuavaCollectors
-
Returns a BiCollector that takes input (disjoint) ranges and the corresponding values and builds an
ImmutableRangeMap
. - toImmutableRangeMap(BinaryOperator<V>) - Static method in class com.google.mu.util.stream.GuavaCollectors
-
Returns a BiCollector that merges values mapped to overlapping ranges using the
merger
function and builds anImmutableRangeMap
with disjoint ranges and the corresponding merged values. - toImmutableSetMultimap() - Static method in class com.google.mu.util.stream.GuavaCollectors
-
Returns a
BiCollector
that collects the key-value pairs into anImmutableSetMultimap
. - toImmutableSetMultimap(Function<? super T, ? extends Both<? extends K, ? extends V>>) - Static method in class com.google.mu.util.stream.GuavaCollectors
-
Returns a collector that first maps each input into a key-value pair, and then collects them into a
ImmutableSetMultimap
. - toImmutableSortedMap(Comparator<? super K>) - Static method in class com.google.mu.util.stream.GuavaCollectors
-
Returns a
BiCollector
that collects the key-value pairs into anImmutableSortedMap
according tocomparator
. - toImmutableSortedMap(Comparator<? super K>, BinaryOperator<V>) - Static method in class com.google.mu.util.stream.GuavaCollectors
-
Returns a
BiCollector
that collects the key-value pairs into anImmutableSortedMap
according tocomparator
, usingvalueMerger
to merge values of duplicate keys. - toImmutableTable() - Static method in class com.google.mu.util.stream.GuavaCollectors
-
Returns a
BiCollector
that collects the key-value pairs into ancom.google.common.collect.ImmutableTable<R,
, where each input key (of typeC, V> R
) is mapped to a row in the table, and each input value is aBiStream<C, V>
whose keys (of typeC
) are mapped to columns in the table, and whose values (of typeV
) are mapped to the cell values. - toImmutableTable(Function<? super T, ? extends R>, Function<? super T, ? extends C>, Collector<T, ?, V>) - Static method in class com.google.mu.util.stream.GuavaCollectors
-
Returns a collector that maps each value into a row-key and column-key for a table, and then collects all values mapped to the same cell using
cellCollector
. - 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.collect.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. - toListOf(Function<? super F, ? extends T>) - Static method in class com.google.mu.util.stream.GuavaCollectors
-
Returns a collector that collects the results of applying the
mapper
function on the input elements into anImmutableList
. - toListValue() - Static method in class com.google.mu.protobuf.util.MoreValues
-
Returns a
Collector
that collects the input values intoListValue
. - 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
. - toMultimap(Supplier<M>) - Static method in class com.google.mu.util.stream.GuavaCollectors
-
Returns a
BiCollector
that collects the key-value pairs into aMultimap
created withmultimapSupplier
. - 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. - toRangeMap(Supplier<? extends M>, BinaryOperator<V>) - Static method in class com.google.mu.util.stream.GuavaCollectors
-
Returns a BiCollector that merges values mapped to overlapping ranges using the
merger
function and builds a mutableRangeMap
of typeM
that's created byfactory
, and populated with disjoint ranges and the corresponding merged values. - toSelection() - Static method in interface com.google.mu.collect.Selection
-
Returns a collector that collects input elements into a limited selection.
- toSetOf(Function<? super F, ? extends T>) - Static method in class com.google.mu.util.stream.GuavaCollectors
-
Returns a collector that collects the results of applying the
mapper
function on the input elements into anImmutableSet
. - toString() - Method in class com.google.mu.bigquery.ParameterizedQuery
- toString() - Method in class com.google.mu.collect.InsertionPoint
-
Returns a human-readable string representation of this insertion point.
- toString() - Method in interface com.google.mu.collect.Selection
-
Returns
"ALL"
ifunlimited
, or else returns the string representation of the set of the explicit choices. - toString() - Method in class com.google.mu.protobuf.util.StructBuilder
- toString() - Method in class com.google.mu.safesql.SafeQuery
-
Returns the encapsulated SQL query.
- toString() - Method in class com.google.mu.safesql.SafeSql
-
Returns the SQL text with
'?'
as the placeholders. - toString() - Method in class com.google.mu.util.StringFormat
-
Returns the string format.
- toString() - Method in class com.google.mu.util.concurrent.Retryer.Delay
- toString() - Method in class com.google.mu.util.concurrent.StructuredConcurrencyExecutorPlugin
- 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 class com.google.mu.util.stream.BiCollection
-
Deprecated.
- toString() - Method in interface com.google.mu.util.StringFormat.Template
-
Returns the string representation of the format.
- toString() - Method in interface com.google.mu.util.StringFormat.To
-
Deprecated.Returns the string representation of the format.
- 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.
- toStruct() - Static method in class com.google.mu.protobuf.util.MoreStructs
-
Returns a
BiCollector
that collects the input key-value pairs intoStruct
. - toStruct() - Method in class com.google.mu.protobuf.util.Structor
-
Returns a
BiCollector
that accumulates the name-value pairs into aStruct
with the values converted usingStructor.toValue(java.lang.Object)
. - toStruct(Function<? super T, ? extends CharSequence>, Function<? super T, Value>) - Static method in class com.google.mu.protobuf.util.MoreStructs
-
Returns a
Collector
that collects input key-value pairs intoStruct
. - toUnion() - Static method in interface com.google.mu.collect.Selection
-
Returns a collector that unions the input selections.
- toValue(Object) - Method in class com.google.mu.protobuf.util.Structor
-
Converts
object
toValue
. - 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
. - translate(String) - Method in class com.google.mu.safesql.SafeQuery.Translator
-
Translates
template
to a factory ofSafeQuery
by filling the provided parameters in the places of corresponding placeholders. - translateLiteral(Substring.Match, Object) - Method in class com.google.mu.safesql.SafeQuery.Translator
-
Called if a placeholder
value
is a non-string, non-Iterable literal appearing unquoted in the template. - Translator() - Constructor for class com.google.mu.safesql.SafeQuery.Translator
- TRUE - Static variable in class com.google.mu.protobuf.util.MoreValues
-
The
Value
for booleantrue
.
U
- UncheckedSqlException - Exception Class in com.google.mu.safesql
-
A simple unchecked wrapper of
SQLException
. - UncheckedSqlException(SQLException) - Constructor for exception class com.google.mu.safesql.UncheckedSqlException
- uninterruptibly(Supplier<A>, Supplier<B>, Fanout.Join2<? super A, ? super B, R, X>) - Static method in class com.google.mu.util.concurrent.Fanout
-
Runs
a
andb
concurrently and uninterruptibly in their own virtual threads. - uninterruptibly(Supplier<A>, Supplier<B>, StructuredConcurrency.Join2<? super A, ? super B, R, X>) - Method in class com.google.mu.util.concurrent.StructuredConcurrency
-
Deprecated.Runs
a
andb
concurrently and uninterruptibly in their own virtual threads. - uninterruptibly(Supplier<A>, Supplier<B>, Supplier<C>, Fanout.Join3<? super A, ? super B, ? super C, R, X>) - Static method in class com.google.mu.util.concurrent.Fanout
-
Runs
a
,b
andc
concurrently and uninterruptibly in their own virtual threads. - uninterruptibly(Supplier<A>, Supplier<B>, Supplier<C>, StructuredConcurrency.Join3<? super A, ? super B, ? super C, R, X>) - Method in class com.google.mu.util.concurrent.StructuredConcurrency
-
Deprecated.Runs
a
,b
andc
concurrently and uninterruptibly in their own virtual threads. - uninterruptibly(Supplier<A>, Supplier<B>, Supplier<C>, Supplier<D>, Fanout.Join4<? super A, ? super B, ? super C, ? super D, R, X>) - Static method in class com.google.mu.util.concurrent.Fanout
-
Runs
a
,b
,c
andd
concurrently and uninterruptibly in their own virtual threads. - uninterruptibly(Supplier<A>, Supplier<B>, Supplier<C>, Supplier<D>, StructuredConcurrency.Join4<? super A, ? super B, ? super C, ? super D, R, X>) - Method in class com.google.mu.util.concurrent.StructuredConcurrency
-
Deprecated.Runs
a
,b
,c
andd
concurrently and uninterruptibly in their own virtual threads. - uninterruptibly(Supplier<A>, Supplier<B>, Supplier<C>, Supplier<D>, Supplier<E>, Fanout.Join5<? super A, ? super B, ? super C, ? super D, ? super E, R, X>) - Static method in class com.google.mu.util.concurrent.Fanout
-
Runs
a
,b
,c
,d
ande
concurrently and uninterruptibly in their own virtual threads. - uninterruptibly(Supplier<A>, Supplier<B>, Supplier<C>, Supplier<D>, Supplier<E>, StructuredConcurrency.Join5<? super A, ? super B, ? super C, ? super D, ? super E, R, X>) - Method in class com.google.mu.util.concurrent.StructuredConcurrency
-
Deprecated.Runs
a
,b
,c
,d
ande
concurrently and uninterruptibly in their own virtual threads. - union(Selection<T>) - Method in interface com.google.mu.collect.Selection
-
Returns an union of this selection and
that
. - union(Set<? extends T>) - Method in interface com.google.mu.collect.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. - using(String, Object...) - Static method in class com.google.mu.util.StringFormat
-
Returns string with the "{placeholder}"s in
template
filled byargs
, in order.
V
- valueOf(String) - Static method in enum class com.google.mu.util.concurrent.StructuredConcurrencyExecutorPlugin.Priority
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.google.mu.util.Substring.BoundStyle
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class com.google.mu.util.concurrent.StructuredConcurrencyExecutorPlugin.Priority
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Method in class com.google.mu.util.stream.BiStream
-
Returns a
Stream
consisting of only the values from each pair in this stream. - values() - Static method in enum class com.google.mu.util.Substring.BoundStyle
-
Returns an array containing the constants of this enum class, in the order they are declared.
- virtualThreadParallelizer(int) - Static method in class com.google.mu.util.concurrent.Parallelizer
-
Returns a
Parallelizer
using virtual threads for running tasks, with at mostmaxInFlight
tasks running concurrently.
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(boolean, String, Object...) - Static method in class com.google.mu.safesql.SafeQuery
-
An optional query that's only rendered if
condition
is true; otherwise returnsSafeQuery.EMPTY
. - when(boolean, String, Object...) - Static method in class com.google.mu.safesql.SafeSql
-
An optional query that's only rendered if
condition
is true; otherwise returnsSafeSql.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. - with(Object...) - Method in interface com.google.mu.util.StringFormat.Template
-
Returns an instance of
T
from the string format filled withparams
. - with(Object...) - Method in interface com.google.mu.util.StringFormat.To
-
Deprecated.Returns an instance of
T
from the string format filled withparams
. - withLowerCaseChars(CharMatcher) - Method in class com.google.mu.util.CaseBreaker
-
Returns a new instance using
camelLower
to identify lower case characters (don't forget to include digits if they should also be treated as lower case). - withMaxConcurrency(int) - Static method in class com.google.mu.util.concurrent.Fanout
-
Returns a concurrency-limited
Parallelizer
that can be used to run a potentially large number of fanout concurrent tasks using the currently configured standard (virtual thread) executor. - withPunctuationChars(CharMatcher) - Method in class com.google.mu.util.CaseBreaker
-
Returns a new instance using
punctuation
to identify punctuation characters (ones that separate words but aren't themselves included in the result), for example if you want to support dash-case using the en dash (–) character. - 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
-
Deprecated.use
BiIteration.generate(L, R)
instead. - yield(T) - Method in class com.google.mu.util.stream.Iteration
-
Deprecated.use
Iteration.generate(T)
instead - yieldAll(Iterable<? extends T>) - Method in class com.google.mu.util.stream.Iteration
-
Deprecated.use
Iteration.generate(Iterable)
instead
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 and Interfaces|All Packages|Serialized Form