Package com.google.api.client.util
@ReflectionSupport(FULL)
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.Deprecated.use com.google.common.io.BaseEncoding#base64Deprecated.use com.google.common.annotations.BetaDeprecated.use com.google.common.io.ByteSourceOutput stream that throws away any content and only retains the count of bytes written to the stream.Deprecated.use Guava's com.google.common.io.ByteStreamsDeprecated.use java.nio.charset.StandardCharsetsComputes 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.Deprecated.use Guava'sCollections2
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.Result of parsing an RFC 3339 string.A timestamp represented as the number of seconds and nanoseconds since Epoch.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.Deprecated.use com.google.common.io.ByteSinkStatic 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.