Package io.hyperfoil.api.session
Interface GlobalData.Accumulator
-
- Enclosing interface:
- GlobalData
public static interface GlobalData.Accumulator
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidadd(GlobalData.Element e)Add a new element to the accumulator.GlobalData.Elementcomplete()Transforms contents of this accumulator into a combined element.
-
-
-
Method Detail
-
add
void add(GlobalData.Element e)
Add a new element to the accumulator. The elements can be combined in arbitrary order, extracted into another element usingcomplete()and combined again.- Parameters:
e- Element of the same type that created this accumulator.- Throws:
java.lang.IllegalArgumentException- if the element is of unsupported type.
-
complete
GlobalData.Element complete()
Transforms contents of this accumulator into a combined element.- Returns:
- Combined element.
-
-