java.lang.Object
com.aquima.interactions.communication.data.DataValue
com.aquima.interactions.communication.data.DataArray
All Implemented Interfaces:
Serializable

public class DataArray extends DataValue
Representing an Array object.
Since:
9.3
Author:
A.Pragt
See Also:
  • Constructor Details

    • DataArray

      public DataArray(DataValueArrayType type)
      Constructs a DataArray object.
      Parameters:
      type - The type of objects stored in this Array object.
    • DataArray

      public DataArray(DataValueArrayType type, DataValue[] data)
      Constructs a DataArray object.
      Parameters:
      type - The type of objects stored in this Array object, can't be null.
      data - The data to be stored, can be null.
    • DataArray

      public DataArray(DataValueArrayType type, Collection<DataValue> data)
      Constructs a DataArray object.
      Parameters:
      type - The type of objects stored in this Array object, can't be null.
      data - The data to be stored, can be null.
  • Method Details

    • getItems

      public DataValue[] getItems()
      Returns the items of the array.
      Returns:
      The items, can be null.
    • setItems

      public void setItems(DataValue[] data)
      Sets the items of the array.
      Parameters:
      data - The items, not null.
    • setItems

      public void setItems(Collection<DataValue> data)
      Sets the items of the array.
      Parameters:
      data - Collection containing DataValues, not null.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class DataValue
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class DataValue
    • toString

      public String toString()
      Overrides:
      toString in class Object