Package | Description |
---|---|
com.google.common.base |
Basic utility libraries and interfaces.
|
Modifier and Type | Class and Description |
---|---|
(package private) class |
Absent<T>
Implementation of an
Optional not containing a reference. |
(package private) class |
AbstractIterator<T>
Note this class is a copy of
AbstractIterator (for dependency
reasons). |
class |
Ascii
Static methods pertaining to ASCII characters (those in the range of values
0x00 through
0x7F ), and to strings containing such characters. |
class |
CaseFormat
Utility class for converting between various ASCII case formats.
|
class |
CharMatcher
|
class |
Charsets
Contains constant definitions for the six standard
Charset instances, which are
guaranteed to be supported by all Java platform implementations. |
(package private) class |
CommonMatcher
The subset of the
Matcher API which is used by this package, and also
shared with the re2j library. |
(package private) class |
CommonPattern
The subset of the
Pattern API which is used by this package, and also
shared with the re2j library. |
class |
Converter<A,B>
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 |
Defaults
This class provides default values for all Java types, as defined by the JLS.
|
class |
Enums
Utility methods for working with
Enum instances. |
class |
Equivalence<T>
A strategy for determining whether two instances are considered equivalent, and for computing
hash codes in a manner consistent with that equivalence.
|
(package private) class |
ExtraObjectsMethodsForWeb
Holder for extra methods of
Objects only in web. |
class |
FinalizablePhantomReference<T>
Phantom reference with a
finalizeReferent() method which a background thread invokes
after the garbage collector reclaims the referent. |
interface |
FinalizableReference
Implemented by references that have code to run after garbage collection of their referents.
|
class |
FinalizableReferenceQueue
A reference queue with an associated background thread that dequeues references and invokes
FinalizableReference.finalizeReferent() on them. |
class |
FinalizableSoftReference<T>
Soft reference with a
finalizeReferent() method which a background thread invokes after
the garbage collector reclaims the referent. |
class |
FinalizableWeakReference<T>
Weak reference with a
finalizeReferent() method which a background thread invokes after
the garbage collector reclaims the referent. |
interface |
Function<F,T>
Legacy version of
java.util.function.Function . |
(package private) class |
FunctionalEquivalence<F,T>
Equivalence applied on functional result.
|
class |
Functions
Static utility methods pertaining to
com.google.common.base.Function instances; see that
class for information about migrating to java.util.function . |
(package private) class |
Java8Compatibility
Wrappers around
Buffer methods that are covariantly overridden in Java 9+. |
(package private) class |
JdkPattern
A regex pattern implementation which is backed by the
Pattern . |
class |
Joiner
An object which joins pieces of text (specified as an array,
Iterable , varargs or even a
Map ) with a separator. |
class |
MoreObjects
Helper functions that operate on any
Object , and are not already provided in Objects . |
(package private) class |
NullnessCasts
A utility method to perform unchecked casts to suppress errors produced by nullness analyses.
|
class |
Objects
Helper functions that can operate on any
Object . |
class |
Optional<T>
An immutable object that may contain a non-null reference to another object.
|
(package private) class |
PairwiseEquivalence<E,T extends E> |
(package private) interface |
PatternCompiler
Pluggable interface for compiling a regex pattern.
|
(package private) class |
Platform
Methods factored out so that they can be emulated differently in GWT.
|
class |
Preconditions
Static convenience methods that help a method or constructor check whether it was invoked
correctly (that is, whether its preconditions were met).
|
interface |
Predicate<T>
Legacy version of
java.util.function.Predicate . |
class |
Predicates
Static utility methods pertaining to
Predicate instances. |
(package private) class |
Present<T>
Implementation of an
Optional containing a reference. |
(package private) class |
SmallCharMatcher
An immutable version of CharMatcher for smallish sets of characters that uses a hash table with
linear probing to check for matches.
|
class |
Splitter
Extracts non-overlapping substrings from an input string, typically by recognizing appearances of
a separator sequence.
|
class |
StandardSystemProperty
Represents a standard system property.
|
class |
Stopwatch
An object that accurately measures elapsed time: the measured duration between two
successive readings of "now" in the same process.
|
class |
Strings
Static utility methods pertaining to
String or CharSequence instances. |
interface |
Supplier<T>
Legacy version of
java.util.function.Supplier . |
class |
Suppliers
Useful suppliers.
|
class |
Throwables
Static utility methods pertaining to instances of
Throwable . |
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. |