Class ArrayValueMap.ArrayValue

  • Enclosing class:
    ArrayValueMap

    static class ArrayValueMap.ArrayValue
    extends java.lang.Object
    Array values on a particular field.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.lang.Class<?> componentType
      Array component type.
      (package private) java.util.ArrayList<java.lang.Object> values
      Values to be stored in the array.
    • Constructor Summary

      Constructors 
      Constructor Description
      ArrayValue​(java.lang.Class<?> componentType)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) void addValue​(java.lang.Class<?> componentType, java.lang.Object value)
      Adds a given value to the array, checking the given component type matches the previously stored component type.
      (package private) java.lang.Object toArray()
      Creates a new array whose content matches that of the values.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • componentType

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

        final java.util.ArrayList<java.lang.Object> values
        Values to be stored in the array.
    • Constructor Detail

      • ArrayValue

        ArrayValue​(java.lang.Class<?> componentType)
        Parameters:
        componentType - array component type
    • Method Detail

      • toArray

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

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