| Package | Description |
|---|---|
| com.google.common.base |
Basic utility libraries and interfaces.
|
| com.google.common.collect |
This package contains generic collection interfaces and implementations, and other utilities for working with collections.
|
| com.google.common.escape |
Interfaces, utilities, and simple implementations of escapers and encoders.
|
| com.google.common.eventbus |
The EventBus allows publish-subscribe-style communication between components without requiring the components to explicitly register with one another (and thus be aware of each other).
|
| com.google.common.hash |
Hash functions and related structures.
|
| com.google.common.html |
Escapers for HTML.
|
| com.google.common.io |
This package contains utility methods and classes for working with Java I/O; for example input streams, output streams, readers, writers, and files.
|
| com.google.common.net |
This package contains utility methods and classes for working with net addresses (numeric IP and domain names).
|
| com.google.common.primitives |
Static utilities for working with the eight primitive types and
void, and value types for treating them as unsigned.
|
| com.google.common.reflect |
This package contains utilities to work with Java reflection.
|
| com.google.common.util.concurrent |
Concurrency utilities.
|
| com.google.common.xml |
Escapers for XML.
|
| com.google.thirdparty.publicsuffix |
| Modifier and Type | Class and Description |
|---|---|
class |
CharMatcher
|
class |
Converter<A
A function from
A to
B with an associated
reverse function from
B to
A; used for converting back and forth between
different representations of the same information.
|
class |
Enums
Utility methods for working with
Enum instances.
|
static class |
Splitter
An object that splits strings into maps as
Splitter splits iterables and lists.
|
class |
StandardSystemProperty
Represents a
standard system property.
|
class |
Ticker
A time source; returns a time value representing the number of nanoseconds elapsed since some fixed but arbitrary point in time.
|
class |
Utf8
Low-level, high-performance utility methods related to the
UTF-8 character encoding.
|
class |
Verify
Static convenience methods that serve the same purpose as Java language
assertions, except that they are always enabled.
|
class |
VerifyException
Exception thrown upon the failure of a
verification check, including those performed by the convenience methods of the
Verify class.
|
| Modifier and Type | Method and Description |
|---|---|
<A extends Appendable |
Joiner.MapJoiner.appendTo(A appendable, Iterable
Appends the string representation of each entry in
entries, using the previously configured separator and key-value separator, to
appendable.
|
<A extends Appendable |
Joiner.MapJoiner.appendTo(A appendable, Iterator
Appends the string representation of each entry in
entries, using the previously configured separator and key-value separator, to
appendable.
|
StringBuilder |
Joiner.MapJoiner.appendTo(StringBuilder
Appends the string representation of each entry in
entries, using the previously configured separator and key-value separator, to
builder.
|
StringBuilder |
Joiner.MapJoiner.appendTo(StringBuilder
Appends the string representation of each entry in
entries, using the previously configured separator and key-value separator, to
builder.
|
static Predicate |
Predicates.assignableFrom(Class
Returns a predicate that evaluates to
true if the class being tested is assignable from the given class.
|
Converter |
CaseFormat.converterTo(CaseFormat
Returns a
Converter that converts strings from this format to
targetFormat.
|
static boolean |
Ascii.equalsIgnoreCase(CharSequence
Indicates whether the contents of the given character sequences
s1 and
s2 are equal, ignoring the case of any ASCII alphabetic characters between
'a' and
'z' or
'A' and
'Z' inclusive.
|
Predicate |
Equivalence.equivalentTo(T target)
Returns a predicate that evaluates to true if and only if the input is equivalent to
target according to this equivalence relation.
|
static <T> Function |
Functions.forSupplier(Supplier
Returns a function that always returns the result of invoking
Supplier on
supplier, regardless of its input.
|
static List |
Throwables.getCausalChain(Throwable
Gets a
Throwable cause chain as a list.
|
String |
Joiner.MapJoiner.join(Iterable
Returns a string containing the string representation of each entry in
entries, using the previously configured separator and key-value separator.
|
String |
Joiner.MapJoiner.join(Iterator
Returns a string containing the string representation of each entry in
entries, using the previously configured separator and key-value separator.
|
static List |
Throwables.lazyStackTrace(Throwable
Returns the stack trace of
throwable, possibly providing slower iteration over the full trace but faster iteration over parts of the trace.
|
static boolean |
Throwables.lazyStackTraceIsLazy()
Returns whether
Throwables will use the special implementation described in its documentation.
|
abstract T |
Optional.or(Supplier
Returns the contained instance if it is present;
supplier.get() otherwise.
|
static <T> Iterable |
Optional.presentInstances(Iterable
Returns the value of each present instance from the supplied
optionals, in order, skipping over occurrences of
Optional.
|
List |
Splitter.splitToList(CharSequence
Splits
sequence into string components and returns them as an immutable list.
|
static <T> Function |
Suppliers.supplierFunction()
Returns a function that accepts a supplier and returns the result of invoking
Supplier on that supplier.
|
static String |
Ascii.truncate(CharSequence
Truncates the given character sequence to the given maximum length.
|
Splitter |
Splitter.withKeyValueSeparator(char separator)
Returns a
MapSplitter which splits entries based on this splitter, and splits entries into keys and values using the specified separator.
|
Splitter |
Splitter.withKeyValueSeparator(Splitter
Returns a
MapSplitter which splits entries based on this splitter, and splits entries into keys and values using the specified key-value splitter.
|
Splitter |
Splitter.withKeyValueSeparator(String
Returns a
MapSplitter which splits entries based on this splitter, and splits entries into keys and values using the specified separator.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ArrayTable<R
Fixed-size
Table implementation backed by a two-dimensional array.
|
class |
BinaryTreeTraverser<T>
A variant of
TreeTraverser for binary trees, providing additional traversals specific to binary trees.
|
class |
ContiguousSet<C extends Comparable
A sorted set of contiguous values in a given
DiscreteDomain.
|
class |
DiscreteDomain<C extends Comparable
A descriptor for a
discrete
Comparable domain such as all
Integer instances.
|
class |
EvictingQueue<E>
A non-blocking queue which automatically evicts elements from the head of the queue when attempting to add new elements onto the queue and it is full.
|
protected class |
ForwardingMap
A sensible implementation of
Map in terms of the following methods:
ForwardingMap,
ForwardingMap,
ForwardingMap,
ForwardingMap,
ForwardingMap, and
ForwardingMap.
|
protected class |
ForwardingMap
A sensible implementation of
Map in terms of the following methods:
ForwardingMap,
ForwardingMap,
ForwardingMap,
ForwardingMap,
ForwardingMap, and the
Set method of
ForwardingMap.
|
protected class |
ForwardingMap
A sensible implementation of
Map in terms of the following methods:
ForwardingMap,
ForwardingMap,
ForwardingMap,
ForwardingMap, and the
Set method of
ForwardingMap.
|
protected class |
ForwardingMultiset
A sensible implementation of
Multiset in terms of the following methods:
ForwardingCollection,
ForwardingCollection,
ForwardingCollection,
ForwardingMultiset,
ForwardingCollection, the
Set and
Set methods of
ForwardingMultiset, and
ForwardingMultiset.
|
protected class |
ForwardingNavigableMap
A sensible implementation of
NavigableMap in terms of the methods of this
NavigableMap.
|
protected class |
ForwardingNavigableMap
A sensible implementation of
NavigableMap in terms of the methods of this
NavigableMap.
|
protected class |
ForwardingNavigableSet
A sensible implementation of
NavigableSet in terms of the other methods of
NavigableSet, notably including
NavigableSet.
|
protected class |
ForwardingSortedMap
A sensible implementation of
SortedMap in terms of the methods of
ForwardingSortedMap.
|
class |
ForwardingSortedMultiset<E>
A sorted multiset which forwards all its method calls to another sorted multiset.
|
class |
ImmutableRangeMap<K extends Comparable
A
RangeMap whose contents will never change, with many other important properties detailed at
ImmutableCollection.
|
class |
ImmutableRangeSet<C extends Comparable
A
RangeSet whose contents will never change, with many other important properties detailed at
ImmutableCollection.
|
class |
ImmutableSortedMultiset<E>
A
SortedMultiset whose contents will never change, with many other important properties detailed at
ImmutableCollection.
|
interface |
Interner<E>
Provides equivalent behavior to
String for other immutable types.
|
class |
Interners
Contains static methods pertaining to instances of
Interner.
|
interface |
MapConstraint<K
Deprecated.
Use
Preconditions for basic checks. In place of constrained maps, we encourage you to check your preconditions explicitly instead of leaving that work to the map implementation. For the specific case of rejecting null, consider ImmutableMap. This class is scheduled for removal in Guava 20.0.
|
class |
MapConstraints
Deprecated.
Use
Preconditions for basic checks. In place of constrained maps, we encourage you to check your preconditions explicitly instead of leaving that work to the map implementation. For the specific case of rejecting null, consider ImmutableMap. This class is scheduled for removal in Guava 20.0.
|
class |
MinMaxPriorityQueue<E>
A double-ended priority queue, which provides constant-time access to both its least element and its greatest element, as determined by the queue's specified comparator.
|
static class |
MinMaxPriorityQueue
The builder class used in creation of min-max priority queues.
|
class |
MultimapBuilder<K0
A builder for a multimap implementation that allows customization of the backing map and value collection implementations used in a particular multimap.
|
interface |
RangeMap<K extends Comparable
A mapping from disjoint nonempty ranges to non-null values.
|
interface |
RangeSet<C extends Comparable
|
interface |
RowSortedTable<R
Interface that extends
Table and whose rows are sorted.
|
interface |
SortedMultiset<E>
A
Multiset which maintains the ordering of its elements, according to either their natural order or an explicit
Comparator.
|
class |
TreeBasedTable<R
Implementation of
Table whose row keys and column keys are ordered by their natural ordering or by supplied comparators.
|
class |
TreeRangeMap<K extends Comparable
An implementation of
RangeMap based on a
TreeMap, supporting all optional operations.
|
class |
TreeRangeSet<C extends Comparable
|
class |
TreeTraverser<T>
Views elements of a type
T as nodes in a tree, and provides methods to traverse the trees induced by this traverser.
|
| Modifier and Type | Method and Description |
|---|---|
FluentIterable |
FluentIterable.append(E... elements)
Returns a fluent iterable whose iterators traverse first the elements of this fluent iterable, followed by
elements.
|
FluentIterable |
FluentIterable.append(Iterable
Returns a fluent iterable whose iterators traverse first the elements of this fluent iterable, followed by those of
other.
|
static <A |
Maps.asConverter(BiMap
Returns a
Converter that converts values using
bimap.get(), and whose inverse view converts values using
bimap.inverse()
.get().
|
static <K |
Multimaps.asMap(ListMultimap
|
static <K |
Multimaps.asMap(Multimap
Returns
multimap.asMap().
|
static <K |
Multimaps.asMap(SetMultimap
|
static <K |
Multimaps.asMap(SortedSetMultimap
Returns
multimap.asMap(), with its type corrected from
Map<K, Collection<V>> to
Map<K, SortedSet<V>>.
|
ImmutableSetMultimap |
ImmutableMap.asMultimap()
Returns a multimap view of the map.
|
static List |
Lists.charactersOf(CharSequence
Returns a view of the specified
CharSequence as a
List<Character>, viewing
sequence as a sequence of Unicode code units.
|
static ImmutableList |
Lists.charactersOf(String
Returns a view of the specified string as an immutable list of
Character values.
|
static <E> ImmutableMultiset |
Multisets.copyHighestCountFirst(Multiset
Returns a copy of
multiset as an
ImmutableMultiset whose iteration order is highest count first, with ties broken by the iteration order of the original multiset.
|
static <K |
ImmutableSortedMap.copyOf(Iterable
Returns an immutable map containing the given entries, with keys sorted by the provided comparator.
|
static <K |
ImmutableSetMultimap.copyOf(Iterable
Returns an immutable multimap containing the specified entries.
|
static <K |
ImmutableBiMap.copyOf(Iterable
Returns an immutable bimap containing the given entries.
|
static <K |
ImmutableMultimap.copyOf(Iterable
Returns an immutable multimap containing the specified entries.
|
static <K |
ImmutableMap.copyOf(Iterable
Returns an immutable map containing the specified entries.
|
static <K |
ImmutableListMultimap.copyOf(Iterable
Returns an immutable multimap containing the specified entries.
|
static <K |
ImmutableSortedMap.copyOf(Iterable
Returns an immutable map containing the given entries, with keys sorted by the provided comparator.
|
static <E> ConcurrentHashMultiset |
ConcurrentHashMultiset.create(MapMaker
Creates a new, empty
ConcurrentHashMultiset using
mapMaker to construct the internal backing map.
|
static <K |
Maps.difference(Map
Computes the difference between two maps.
|
static <E> Multiset |
Multisets.difference(Multiset
Returns an unmodifiable view of the difference of two multisets.
|
static <E> int |
Queues.drain(BlockingQueue
Drains the queue as
BlockingQueue, but if the requested
numElements elements are not available, it will wait for them up to the specified timeout.
|
static <E> int |
Queues.drainUninterruptibly(BlockingQueue
Drains the queue as
Queues |
static <E> Multiset |
Multisets.filter(Multiset
Returns a view of the elements of
unfiltered that satisfy a predicate.
|
static <K extends Enum |
Maps.immutableEnumMap(Map
Returns an immutable map instance containing the given entries.
|
String |
FluentIterable.join(Joiner
Returns a
String containing all of the elements of this fluent iterable joined with
joiner.
|
static <T> Iterable |
Iterables.mergeSorted(Iterable
Returns an iterable over the merged contents of all given
iterables.
|
static <T> UnmodifiableIterator |
Iterators.mergeSorted(Iterable
Returns an iterator over the merged contents of all given
iterators, traversing every element of the input iterators.
|
static <R |
Tables.newCustomTable(Map
Creates a table that uses the specified backing map and factory.
|
static <E> FluentIterable |
FluentIterable.of(E[] elements)
Returns a fluent iterable containing
elements in the specified order.
|
static <E extends Comparable |
Collections2.orderedPermutations(Iterable
Returns a
Collection of all the permutations of the specified
Iterable.
|
static <E> Collection |
Collections2.orderedPermutations(Iterable
Returns a
Collection of all the permutations of the specified
Iterable using the specified
Comparator for establishing the lexicographical ordering.
|
ImmutableSortedMap |
ImmutableSortedMap.Builder.orderEntriesByValue(Comparator
Deprecated.
Unsupported by ImmutableSortedMap.Builder.
|
ImmutableBiMap |
ImmutableBiMap.Builder.orderEntriesByValue(Comparator
Configures this
Builder to order entries by value according to the specified comparator.
|
ImmutableMap |
ImmutableMap.Builder.orderEntriesByValue(Comparator
Configures this
Builder to order entries by value according to the specified comparator.
|
static <E> Collection |
Collections2.permutations(Collection
Returns a
Collection of all the permutations of the specified
Collection.
|
ImmutableSortedMap |
ImmutableSortedMap.Builder.putAll(Iterable
Adds all the given entries to the built map.
|
ImmutableSetMultimap |
ImmutableSetMultimap.Builder.putAll(Iterable
Adds entries to the built multimap.
|
ImmutableBiMap |
ImmutableBiMap.Builder.putAll(Iterable
Adds all of the given entries to the built bimap.
|
ImmutableMultimap |
ImmutableMultimap.Builder.putAll(Iterable
Adds entries to the built multimap.
|
ImmutableMap |
ImmutableMap.Builder.putAll(Iterable
Adds all of the given entries to the built map.
|
ImmutableListMultimap |
ImmutableListMultimap.Builder.putAll(Iterable
Adds entries to the built multimap.
|
protected boolean |
ForwardingMultiset.standardAddAll(Collection
A sensible definition of
ForwardingCollection in terms of
ForwardingCollection and
ForwardingMultiset.
|
protected boolean |
ForwardingSortedSet.standardContains(Object
A sensible definition of
ForwardingCollection in terms of the
first() method of
ForwardingSortedSet.
|
protected boolean |
ForwardingSortedMap.standardContainsKey(Object
A sensible definition of
ForwardingMap in terms of the
firstKey() method of
ForwardingSortedMap.
|
protected boolean |
ForwardingMap.standardContainsKey(Object
A sensible, albeit inefficient, definition of
ForwardingMap in terms of the
iterator method of
ForwardingMap.
|
protected int |
ForwardingMultiset.standardCount(Object
A sensible, albeit inefficient, definition of
ForwardingMultiset in terms of
ForwardingMultiset.
|
protected NavigableSet |
ForwardingNavigableMap.standardDescendingKeySet()
A sensible definition of
ForwardingNavigableMap as the
navigableKeySet of
ForwardingNavigableMap.
|
protected boolean |
ForwardingList.standardEquals(Object
A sensible definition of
ForwardingList in terms of
ForwardingCollection and
ForwardingCollection.
|
protected int |
ForwardingList.standardHashCode()
A sensible definition of
ForwardingList in terms of
ForwardingCollection.
|
protected ListIterator |
ForwardingList.standardListIterator(int start)
A sensible default implementation of
ForwardingList, in terms of
ForwardingCollection,
ForwardingList,
ForwardingList,
ForwardingList, and
ForwardingList.
|
protected boolean |
ForwardingSortedSet.standardRemove(Object
A sensible definition of
ForwardingCollection in terms of the
iterator() method of
ForwardingSortedSet.
|
protected V |
ForwardingMap.standardRemove(Object
A sensible, albeit inefficient, definition of
ForwardingMap in terms of the
iterator method of
ForwardingMap.
|
protected List |
ForwardingList.standardSubList(int fromIndex, int toIndex)
A sensible default implementation of
ForwardingList.
|
protected SortedMap |
ForwardingSortedMap.standardSubMap(K fromKey, K toKey)
A sensible default implementation of
ForwardingSortedMap in terms of
ForwardingSortedMap and
ForwardingSortedMap.
|
protected NavigableSet |
ForwardingNavigableSet.standardSubSet(E fromElement, boolean fromInclusive, E toElement, boolean toInclusive)
A sensible definition of
ForwardingNavigableSet in terms of the
headSet and
tailSet methods.
|
protected SortedSet |
ForwardingSortedSet.standardSubSet(E fromElement, E toElement)
A sensible default implementation of
ForwardingSortedSet in terms of
ForwardingSortedSet and
ForwardingSortedSet.
|
protected String |
ForwardingMapEntry.standardToString()
A sensible definition of
ForwardingObject in terms of
ForwardingMapEntry and
ForwardingMapEntry.
|
static <E> Multiset |
Multisets.sum(Multiset
Returns an unmodifiable view of the sum of two multisets.
|
static <R |
Tables.transformValues(Table
Returns a view of a table where each value is transformed by a function.
|
static <E> Multiset |
Multisets.union(Multiset
Returns an unmodifiable view of the union of two multisets.
|
static <R |
Tables.unmodifiableRowSortedTable(RowSortedTable
Returns an unmodifiable view of the specified row-sorted table.
|
static <E> SortedMultiset |
Multisets.unmodifiableSortedMultiset(SortedMultiset
Returns an unmodifiable view of the specified sorted multiset.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ArrayBasedCharEscaper
A
CharEscaper that uses an array to quickly look up replacement characters for a given
char value.
|
class |
ArrayBasedEscaperMap
An implementation-specific parameter class suitable for initializing
ArrayBasedCharEscaper or
ArrayBasedUnicodeEscaper instances.
|
class |
ArrayBasedUnicodeEscaper
A
UnicodeEscaper that uses an array to quickly look up replacement characters for a given code point.
|
class |
CharEscaper
An object that converts literal text into a format safe for inclusion in a particular context (such as an XML document).
|
class |
CharEscaperBuilder
Simple helper class to build a "sparse" array of objects based on the indexes that were added to it.
|
class |
Escaper
An object that converts literal text into a format safe for inclusion in a particular context (such as an XML document).
|
class |
Escapers
Static utility methods pertaining to
Escaper instances.
|
static class |
Escapers
A builder for simple, fast escapers.
|
class |
UnicodeEscaper
An
Escaper that converts literal text into a format safe for inclusion in a particular context (such as an XML document).
|
| Modifier and Type | Class and Description |
|---|---|
interface |
AllowConcurrentEvents
Marks an event subscriber method as being thread-safe.
|
class |
AsyncEventBus
An
EventBus that takes the Executor of your choice and uses it to dispatch events, allowing dispatch to occur asynchronously.
|
class |
DeadEvent
Wraps an event that was posted, but which had no subscribers and thus could not be delivered.
|
class |
EventBus
Dispatches events to listeners, and provides ways for listeners to register themselves.
|
interface |
Subscribe
Marks a method as an event subscriber.
|
| Modifier and Type | Class and Description |
|---|---|
class |
BloomFilter<T>
A Bloom filter for instances of
T.
|
interface |
Funnel<T>
An object which can send data from an object of type
T into a
PrimitiveSink.
|
class |
Funnels
Funnels for common types.
|
class |
HashCode
An immutable hash code of arbitrary bit length.
|
interface |
Hasher
A
PrimitiveSink that can compute a hash code after reading the input.
|
interface |
HashFunction
A hash function is a collision-averse pure function that maps an arbitrary block of data to a number called a
hash code.
|
class |
Hashing
Static methods to obtain
HashFunction instances, and other static hashing-related utilities.
|
class |
HashingInputStream
An
InputStream that maintains a hash of the data read from it.
|
class |
HashingOutputStream
An
OutputStream that maintains a hash of the data written to it.
|
interface |
PrimitiveSink
An object which can receive a stream of primitive values.
|
| Modifier and Type | Class and Description |
|---|---|
class |
HtmlEscapers
Escaper instances suitable for strings to be included in HTML attribute values and
most elements' text contents.
|
| Modifier and Type | Class and Description |
|---|---|
class |
BaseEncoding
A binary encoding scheme for reversibly translating between byte sequences and printable ASCII strings.
|
interface |
ByteProcessor<T>
A callback interface to process bytes from a stream.
|
class |
ByteStreams
Provides utility methods for working with byte arrays and I/O streams.
|
class |
CharStreams
Provides utility methods for working with character streams.
|
class |
Closeables
Utility methods for working with
Closeable objects.
|
class |
Closer
|
class |
CountingInputStream
An
InputStream that counts the number of bytes read.
|
class |
CountingOutputStream
An OutputStream that counts the number of bytes written.
|
class |
FileBackedOutputStream
An
OutputStream that starts buffering to a byte array, but switches to file buffering once the data reaches a configurable size.
|
class |
Files
Provides utility methods for working with files.
|
class |
Flushables
Utility methods for working with
Flushable objects.
|
interface |
LineProcessor<T>
A callback to be used with the streaming
readLines methods.
|
class |
LineReader
A class for reading lines of text.
|
class |
LittleEndianDataInputStream
An implementation of
DataInput that uses little-endian byte ordering for reading
short,
int,
float,
double, and
long values.
|
class |
LittleEndianDataOutputStream
An implementation of
DataOutput that uses little-endian byte ordering for writing
char,
short,
int,
float,
double, and
long values.
|
class |
PatternFilenameFilter
File name filter that only accepts files matching a regular expression.
|
class |
Resources
Provides utility methods for working with resources in the classpath.
|
| Modifier and Type | Method and Description |
|---|---|
long |
CharSource.length()
Returns the length of this source in chars, even if doing so requires opening and traversing an entire stream.
|
Optional |
CharSource.lengthIfKnown()
Returns the size of this source in chars, if the size can be easily determined without actually opening the data stream.
|
<T> T |
ByteSource.read(ByteProcessor
Reads the contents of this byte source using the given
processor to process bytes as they are read.
|
<T> T |
CharSource.readLines(LineProcessor
Reads lines of text from this source, processing each line as it is read using the given
processor.
|
Optional |
ByteSource.sizeIfKnown()
Returns the size of this source in bytes, if the size can be easily determined without actually opening the data stream.
|
| Modifier and Type | Class and Description |
|---|---|
class |
HostAndPort
An immutable representation of a host and port.
|
class |
HostSpecifier
A syntactically valid host specifier, suitable for use in a URI.
|
class |
InetAddresses
Static utility methods pertaining to
InetAddress instances.
|
static class |
InetAddresses
A simple immutable data class to encapsulate the information to be found in a Teredo address.
|
class |
InternetDomainName
An immutable well-formed internet domain name, such as
com or
foo.co.uk.
|
class |
MediaType
Represents an
Internet Media Type (also known as a MIME Type or Content Type).
|
class |
PercentEscaper
A
UnicodeEscaper that escapes some set of Java characters using a UTF-8 based percent encoding scheme.
|
class |
UrlEscapers
Escaper instances suitable for strings to be included in particular sections of URLs.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
HttpHeaders.FOLLOW_ONLY_WHEN_PRERENDER_SHOWN
The HTTP
Follow-Only-When-Prerender-Shown header field name.
|
static String |
HttpHeaders.PUBLIC_KEY_PINS
The HTTP
Public-Key-Pins header field name.
|
static String |
HttpHeaders.PUBLIC_KEY_PINS_REPORT_ONLY
The HTTP
Public-Key-Pins-Report-Only header field name.
|
| Modifier and Type | Class and Description |
|---|---|
class |
UnsignedInts
Static utility methods pertaining to
int primitives that interpret values as
unsigned (that is, any negative value
x is treated as the positive value
2^32 + x).
|
class |
UnsignedLongs
Static utility methods pertaining to
long primitives that interpret values as
unsigned (that is, any negative value
x is treated as the positive value
2^64 + x).
|
| Modifier and Type | Method and Description |
|---|---|
static int |
Booleans.countTrue(boolean... values)
Returns the number of
values that are
true.
|
static byte |
UnsignedBytes.parseUnsignedByte(String
Returns the unsigned
byte value represented by the given decimal string.
|
static byte |
UnsignedBytes.parseUnsignedByte(String
Returns the unsigned
byte value represented by a string with the given radix.
|
static Converter |
Longs.stringConverter()
Returns a serializable converter object that converts between strings and longs using
Long and
Long.
|
static Converter |
Shorts.stringConverter()
Returns a serializable converter object that converts between strings and shorts using
Short and
Short.
|
static Converter |
Doubles.stringConverter()
Returns a serializable converter object that converts between strings and doubles using
Double and
Double.
|
static Converter |
Ints.stringConverter()
Returns a serializable converter object that converts between strings and integers using
Integer and
Integer.
|
static Converter |
Floats.stringConverter()
Returns a serializable converter object that converts between strings and floats using
Float and
Float.
|
static String |
UnsignedBytes.toString(byte x)
Returns a string representation of x, where x is treated as unsigned.
|
static String |
UnsignedBytes.toString(byte x, int radix)
Returns a string representation of
x for the given radix, where
x is treated as unsigned.
|
static Long |
Longs.tryParse(String
Parses the specified string as a signed decimal long value.
|
static Double |
Doubles.tryParse(String
Parses the specified string as a double-precision floating point value.
|
static Integer |
Ints.tryParse(String
Parses the specified string as a signed decimal integer value.
|
static Float |
Floats.tryParse(String
Parses the specified string as a single-precision floating point value.
|
static Long |
Longs.tryParse(String
Parses the specified string as a signed long value using the specified radix.
|
static Integer |
Ints.tryParse(String
Parses the specified string as a signed integer value using the specified radix.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractInvocationHandler
Abstract implementation of
InvocationHandler that handles
Object,
Object and
Object.
|
class |
ClassPath
Scans the source of a
ClassLoader and finds all loadable classes and resources.
|
static class |
ClassPath
Represents a class that can be loaded through
ClassPath.
|
static class |
ClassPath
Represents a class path resource that can be either a class file or any other resource file loadable from the class path.
|
class |
ImmutableTypeToInstanceMap<B>
A type-to-instance map backed by an
ImmutableMap.
|
static class |
ImmutableTypeToInstanceMap
A builder for creating immutable type-to-instance maps.
|
class |
Invokable<T
Wrapper around either a
Method or a
Constructor.
|
class |
MutableTypeToInstanceMap<B>
A mutable type-to-instance map.
|
class |
Parameter
Represents a method or constructor parameter.
|
class |
Reflection
Static utilities relating to Java reflection.
|
class |
TypeParameter<T>
Captures a free type variable that can be used in
TypeToken.
|
class |
TypeResolver
An object of this class encapsulates type mappings from type variables.
|
interface |
TypeToInstanceMap<B>
A map, each entry of which maps a
TypeToken to an instance of that type.
|
class |
TypeToken<T>
A
Type with generics.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractCheckedFuture<V
A delegating wrapper around a
ListenableFuture that adds support for the
AbstractCheckedFuture and
AbstractCheckedFuture methods.
|
class |
AbstractExecutionThreadService
Base class for services that can implement
AbstractExecutionThreadService,
AbstractExecutionThreadService and
AbstractExecutionThreadService methods.
|
class |
AbstractIdleService
Base class for services that do not need a thread while "running" but may need one during startup and shutdown.
|
class |
AbstractListeningExecutorService
Abstract
ListeningExecutorService implementation that creates
ListenableFuture instances for each
Runnable and
Callable submitted to it.
|
class |
AbstractScheduledService
Base class for services that can implement
AbstractScheduledService and
AbstractScheduledService but while in the "running" state need to perform a periodic task.
|
static class |
AbstractScheduledService
A
AbstractScheduledService.Scheduler that provides a convenient way for the
AbstractScheduledService to use a dynamically changing schedule.
|
protected static class |
AbstractScheduledService
A value object that represents an absolute delay until a task should be invoked.
|
class |
AbstractService
Base class for implementing services that can handle
AbstractService and
AbstractService requests, responding to them with
AbstractService and
AbstractService callbacks.
|
interface |
CheckedFuture<V
A
CheckedFuture is a
ListenableFuture that includes versions of the
get methods that can throw a checked exception.
|
class |
CycleDetectingLockFactory
The
CycleDetectingLockFactory creates
ReentrantLock instances and
ReentrantReadWriteLock instances that detect potential deadlock by checking for cycles in lock acquisition order.
|
static class |
CycleDetectingLockFactory
Pre-defined
CycleDetectingLockFactory.Policy implementations.
|
static interface |
CycleDetectingLockFactory
Encapsulates the action to be taken when a potential deadlock is encountered.
|
static class |
CycleDetectingLockFactory
Represents a detected cycle in lock acquisition ordering.
|
static class |
CycleDetectingLockFactory
A
CycleDetectingLockFactory.WithExplicitOrdering provides the additional enforcement of an application-specified ordering of lock acquisitions.
|
class |
FakeTimeLimiter
A TimeLimiter implementation which actually does not attempt to limit time at all.
|
class |
ForwardingCheckedFuture<V
A future which forwards all its method calls to another future.
|
static class |
ForwardingCheckedFuture
A simplified version of
ForwardingCheckedFuture where subclasses can pass in an already constructed
CheckedFuture as the delegate.
|
interface |
FutureFallback<V>
Deprecated.
This interface's main user,
Futures.withFallback, has been updated to use AsyncFunction. We recommend that other APIs be updated in the same way. This interface will be removed in Guava release 20.0.
|
class |
Futures
Static utility methods pertaining to the
Future interface.
|
class |
JdkFutureAdapters
Utilities necessary for working with libraries that supply plain
Future instances.
|
interface |
ListenableScheduledFuture<V>
Helper interface to implement both
ListenableFuture and
ScheduledFuture.
|
interface |
ListeningScheduledExecutorService
A
ScheduledExecutorService that returns
ListenableFuture instances from its
ExecutorService methods.
|
class |
Monitor
A synchronization abstraction supporting waiting on arbitrary boolean conditions.
|
static class |
Monitor
A boolean condition for which a thread may wait.
|
class |
RateLimiter
A rate limiter.
|
class |
Runnables
Static utility methods pertaining to the
Runnable interface.
|
interface |
Service
An object with an operational state, plus asynchronous
Service and
Service lifecycle methods to transition between states.
|
static class |
Service
A listener for the various state changes that a
Service goes through in its lifecycle.
|
static class |
Service
The lifecycle states of a service.
|
class |
ServiceManager
A manager for monitoring and controlling a set of
services.
|
static class |
ServiceManager
A listener for the aggregate state changes of the services that are under management.
|
class |
SimpleTimeLimiter
A TimeLimiter that runs method calls in the background using an
ExecutorService.
|
class |
Striped<L>
A striped
Lock/Semaphore/ReadWriteLock.
|
interface |
TimeLimiter
Produces proxies that impose a time limit on method calls to the proxied object.
|
class |
Uninterruptibles
Utilities for treating interruptible operations as uninterruptible.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
MoreExecutors.addDelayedShutdownHook(ExecutorService
Add a shutdown hook to wait for thread completion in the given
service.
|
static <V> ListenableFuture |
Futures.allAsList(Iterable
Creates a new
ListenableFuture whose value is a list containing the values of all its input futures, if all succeed.
|
static <V> ListenableFuture |
Futures.allAsList(ListenableFuture
Creates a new
ListenableFuture whose value is a list containing the values of all its input futures, if all succeed.
|
static ExecutorService |
MoreExecutors.getExitingExecutorService(ThreadPoolExecutor
Converts the given ThreadPoolExecutor into an ExecutorService that exits when the application is complete.
|
static ExecutorService |
MoreExecutors.getExitingExecutorService(ThreadPoolExecutor
Converts the given ThreadPoolExecutor into an ExecutorService that exits when the application is complete.
|
static ScheduledExecutorService |
MoreExecutors.getExitingScheduledExecutorService(ScheduledThreadPoolExecutor
Converts the given ThreadPoolExecutor into a ScheduledExecutorService that exits when the application is complete.
|
static ScheduledExecutorService |
MoreExecutors.getExitingScheduledExecutorService(ScheduledThreadPoolExecutor
Converts the given ScheduledThreadPoolExecutor into a ScheduledExecutorService that exits when the application is complete.
|
static <T> ImmutableList |
Futures.inCompletionOrder(Iterable
Returns a list of delegate futures that correspond to the futures received in the order that they complete.
|
static ThreadFactory |
MoreExecutors.platformThreadFactory()
Returns a default thread factory used to create new threads.
|
boolean |
SettableFuture.setFuture(ListenableFuture
|
protected boolean |
AbstractFuture.setFuture(ListenableFuture
Sets the result of this
Future to match the supplied input
Future once the supplied
Future is done, unless this
Future has already been cancelled or set (including "set asynchronously," defined below).
|
static boolean |
MoreExecutors.shutdownAndAwaitTermination(ExecutorService
Shuts down the given executor gradually, first disabling new submissions and later cancelling existing tasks.
|
static <V> ListenableFuture |
Futures.successfulAsList(Iterable
Creates a new
ListenableFuture whose value is a list containing the values of all its successful input futures.
|
static <V> ListenableFuture |
Futures.successfulAsList(ListenableFuture
Creates a new
ListenableFuture whose value is a list containing the values of all its successful input futures.
|
| Modifier and Type | Class and Description |
|---|---|
class |
XmlEscapers
Escaper instances suitable for strings to be included in XML attribute values and elements' text contents.
|
| Modifier and Type | Class and Description |
|---|---|
class |
PublicSuffixPatterns
Do not use this class directly.
|