public class ListResultData extends java.lang.Object implements ResultData, java.lang.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.
|
java.util.Iterator<ResultData> |
iterator() |
ResultData |
removeResult(int index)
Removes the result at the specified index.
|
public <T> T accept(ResultDataVisitor<T> visitor)
ResultData
accept
in interface ResultData
T
- type of the results of the ResultDataVisitor
visitor
- 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 java.util.Iterator<ResultData> iterator()
iterator
in interface java.lang.Iterable<ResultData>
Copyright © 1998-2018 Apache Software Foundation. All Rights Reserved.