java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<Data>
com.gooddata.sdk.model.executeafm.result.DataList
All Implemented Interfaces:
Data, Serializable, Cloneable, Iterable<Data>, Collection<Data>, List<Data>, RandomAccess

public class DataList extends ArrayList<Data> implements Data
List value type of Data, basically wrapper for list of nested Data
See Also:
  • Constructor Details

    • DataList

      public DataList(List<Data> values)
      Creates new instance of given list of data
      Parameters:
      values - list to use as values, can't be null
  • Method Details

    • isList

      public boolean isList()
      Specified by:
      isList in interface Data
      Returns:
      true if this instance is of kind list, false otherwise
    • isValue

      public boolean isValue()
      Specified by:
      isValue in interface Data
      Returns:
      true if this instance is of kind value, false otherwise
    • textValue

      public String textValue()
      Specified by:
      textValue in interface Data
      Returns:
      text data value, throws exception for data which can't be represented as text
    • asList

      public List<Data> asList()
      Specified by:
      asList in interface Data
      Returns:
      this instance cast to List, may throw exception if this instance is not of kind list.
    • toString

      public String toString()
      Overrides:
      toString in class AbstractCollection<Data>