Class MapResultData

  • All Implemented Interfaces:
    org.apache.jmeter.report.processor.ResultData

    
    public class MapResultData
     implements ResultData
                        

    The class MapResultData provides a hash map of results from samples processing.

    Since:

    3.0

    • Constructor Detail

      • MapResultData

        MapResultData()
    • Method Detail

      • accept

         <T> T accept(ResultDataVisitor<T> visitor)

        Accepts the specified visitor.

        Parameters:
        visitor - the visitor (must not be null)
        Returns:

        result of the visit

      • getResult

         ResultData getResult(String name)

        Gets the result with the specified name.

        Parameters:
        name - the name of the result
        Returns:

        the result

      • setResult

         ResultData setResult(String name, ResultData result)

        Sets the specified result to the map.

        Parameters:
        name - the name of the result
        result - the result
        Returns:

        the previously result data associated with the specified name

      • removeResult

         ResultData removeResult(String name)

        Removes the result with the specified name.

        Parameters:
        name - the name of the result
        Returns:

        the removed result data