public class ListResultData extends Object implements ResultData, Iterable<ResultData>
| Constructor and Description |
|---|
ListResultData() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
accept(ResultDataVisitor<T> visitor)
Accepts the specified visitor.
|
boolean |
addResult(ResultData result)
Adds the result at the end of the list.
|
ResultData |
get(int index)
Gets the stored item at the specified index.
|
int |
getSize()
Gets the size of the list.
|
Iterator<ResultData> |
iterator() |
ResultData |
removeResult(int index)
Removes the result at the specified index.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic <T> T accept(ResultDataVisitor<T> visitor)
ResultDataaccept in interface ResultDataT - type of the results of the ResultDataVisitorvisitor - the visitor (must not be null)public boolean addResult(ResultData result)
result - the resultpublic ResultData removeResult(int index)
index - the index of the result in the listpublic ResultData get(int index)
index - the indexpublic int getSize()
public Iterator<ResultData> iterator()
iterator in interface Iterable<ResultData>Copyright © 1998-2021 Apache Software Foundation. All Rights Reserved.