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