Class DataList

  • All Implemented Interfaces:
    Data, java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<Data>, java.util.Collection<Data>, java.util.List<Data>, java.util.RandomAccess

    public class DataList
    extends java.util.ArrayList<Data>
    implements Data
    List value type of Data, basically wrapper for list of nested Data
    See Also:
    Serialized Form
    • Nested Class Summary

    • Field Summary

      • Fields inherited from class java.util.AbstractList

        modCount
      • Fields inherited from interface com.gooddata.sdk.model.executeafm.result.Data

        NULL
    • Constructor Summary

      Constructors 
      Constructor Description
      DataList​(java.util.List<Data> values)
      Creates new instance of given list of data
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<Data> asList()  
      boolean isList()  
      boolean isValue()  
      java.lang.String textValue()  
      java.lang.String toString()  
      • Methods inherited from class java.util.ArrayList

        add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
      • Methods inherited from class java.util.AbstractCollection

        containsAll
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        parallelStream, stream, toArray
      • Methods inherited from interface com.gooddata.sdk.model.executeafm.result.Data

        isNull
      • Methods inherited from interface java.util.List

        containsAll
    • Constructor Detail

      • DataList

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

      • 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 java.lang.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 java.util.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 java.lang.String toString()
        Overrides:
        toString in class java.util.AbstractCollection<Data>