Class ListResultData
java.lang.Object
org.apache.jmeter.report.processor.ListResultData
- All Implemented Interfaces:
Iterable<ResultData>
,ResultData
The class ListResultData provides a list of results from sample processing.
- Since:
- 3.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> T
accept
(ResultDataVisitor<T> visitor) Accepts the specified visitor.boolean
addResult
(ResultData result) Adds the result at the end of the list.get
(int index) Gets the stored item at the specified index.int
getSize()
Gets the size of the list.iterator()
removeResult
(int index) Removes the result at the specified index.toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ListResultData
public ListResultData()
-
-
Method Details
-
accept
Description copied from interface:ResultData
Accepts the specified visitor.- Specified by:
accept
in interfaceResultData
- Type Parameters:
T
- type of the results of theResultDataVisitor
- Parameters:
visitor
- the visitor (must not benull
)- Returns:
- result of the visit
-
addResult
Adds the result at the end of the list.- Parameters:
result
- the result- Returns:
- true, if the result is added
-
removeResult
Removes the result at the specified index.- Parameters:
index
- the index of the result in the list- Returns:
- the removed result data
-
get
Gets the stored item at the specified index.- Parameters:
index
- the index- Returns:
- the result data
-
getSize
public int getSize()Gets the size of the list.- Returns:
- the size of the list
-
iterator
- Specified by:
iterator
in interfaceIterable<ResultData>
-
toString
-