Class ArrayValueMap.ArrayValue

java.lang.Object
com.google.api.client.util.ArrayValueMap.ArrayValue
Enclosing class:
ArrayValueMap

static class ArrayValueMap.ArrayValue extends Object
Array values on a particular field.
  • Field Details

    • componentType

      final Class<?> componentType
      Array component type.
    • values

      final ArrayList<Object> values
      Values to be stored in the array.
  • Constructor Details

    • ArrayValue

      ArrayValue(Class<?> componentType)
      Parameters:
      componentType - array component type
  • Method Details

    • toArray

      Object toArray()
      Creates a new array whose content matches that of the values.
    • addValue

      void addValue(Class<?> componentType, Object value)
      Adds a given value to the array, checking the given component type matches the previously stored component type.