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, 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
-
-
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
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 Details
-
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 Details
-
public boolean isList()
- Specified by:
isList in interface Data
- Returns:
- true if this instance is of kind list, false otherwise
-
public boolean isValue()
- Specified by:
isValue in interface Data
- Returns:
- true if this instance is of kind value, false otherwise
-
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
-
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.
-
public java.lang.String toString()
- Overrides:
toString in class java.util.AbstractCollection<Data>