Package com.google.api.client.util
General utilities used throughout this library.
- Since:
- 1.0
-
Interface Summary Interface Description BackOff Back-off policy when retrying an operation.Clock Clock which can be used to get the amount of elapsed milliseconds in system time.NanoClock Nano clock which can be used to measure elapsed time in nanoseconds.ObjectParser Parses a data source into the specified data type.Sleeper Sleeper interface to use for requesting the current thread to sleep as specified inThread.sleep(long)
.StreamingContent Streaming content interface to write bytes to an output stream. -
Class Summary Class Description ArrayMap<K,V> Memory-efficient map of keys to values with list-style random-access semantics.ArrayValueMap Collects the array values of a key/value data object, writing the fields or map values only after all values have been collected.ArrayValueMap.ArrayValue Array values on a particular field.BackOffUtils Base64 Proxy for version 1.6 (or newer) of the Apache Commons CodecBase64
implementation.ByteArrayStreamingContent Streaming content whose source is a byte array.ByteCountingOutputStream Output stream that throws away any content and only retains the count of bytes written to the stream.ByteStreams Provides utility methods for working with byte arrays and I/O streams.ByteStreams.LimitedInputStream Charsets Contains constant definitions for some standardCharset
instances that are guaranteed to be supported by all Java platform implementations.ClassInfo Computes class information to determine data key name/value pairs associated with the class.Collections2 Static utility methods pertaining toCollection
instances.Data Utilities for working with key/value data based on theKey
annotation.DataMap Map that usesClassInfo
to parse the key/value pairs into a map for use inData.mapOf(Object)
.DateTime Immutable representation of a date with an optional time and an optional time zone based on RFC 3339.ExponentialBackOff Implementation ofBackOff
that increases the back off period for each retry attempt using a randomization function that grows exponentially.ExponentialBackOff.Builder Builder forExponentialBackOff
.FieldInfo Parses field information to determine data key name/value pair associated with the field.GenericData Generic data that stores all unknown data key name/value pairs.IOUtils Utilities for I/O streams.Joiner An object which joins pieces of text (specified as an array,Iterable
, varargs or even aMap
) with a separator.Lists Static utility methods pertaining toList
instances.LoggingByteArrayOutputStream Thread-safe byte array output stream that logs what was written to it when the stream is closed.LoggingInputStream Thread-safe input stream wrapper that forwards all reads to a given input stream, while logging all reads to aLoggingByteArrayOutputStream
.LoggingOutputStream Thread-safe output stream wrapper that forwards all writes to a given output stream, while logging all writes to aLoggingByteArrayOutputStream
.LoggingStreamingContent Wraps another streaming content without modifying the content, but also logging content usingLoggingOutputStream
.Maps Static utility methods pertaining toMap
instances.Objects Helper functions that can operate on anyObject
.Objects.ToStringHelper Support class forObjects.toStringHelper(java.lang.Object)
.Objects.ToStringHelper.ValueHolder PemReader Beta
PEM file reader.PemReader.Section Section in the PEM file.Preconditions Simple static methods to be called at the start of your own methods to verify correct arguments and state.SecurityUtils Utilities related to Java security.Sets Static utility methods pertaining toSet
instances.SslUtils SSL utilities.Strings Static utility methods pertaining toString
instances.StringUtils Utilities for strings.Throwables Static utility methods pertaining to instances ofThrowable
.Types Utilities for working with Java types. -
Enum Summary Enum Description GenericData.Flags Flags that impact behavior of generic data. -
Annotation Types Summary Annotation Type Description Beta Use this annotation to indicate that a public API (class, method or field) is beta.Key Use this annotation to specify that a field is a data key, optionally providing the data key name to use.NullValue Use this annotation to specify that an enum constant is the "null" data value to use forData.nullOf(Class)
.Value Use this annotation to specify that an enum constant is a string data value, optionally providing the string data value to use.