Package org.apache.jmeter.report.core
Class SampleBuilder
java.lang.Object
org.apache.jmeter.report.core.SampleBuilder
This class is meant to simplify the building of samples.
It provides default behaviour for number formatting.
The default numberformat used is a DecimalFormat whose pattern is the
following :
"#########0.00#"
- Since:
- 3.0
-
Constructor Summary
ConstructorDescriptionSampleBuilder
(SampleMetadata metadata) Construct a SampleBuilder with default formatterSampleBuilder
(SampleMetadata metadata, NumberFormat floatFormatter) Construct a SampleBuilder. -
Method Summary
-
Constructor Details
-
SampleBuilder
Construct a SampleBuilder.- Parameters:
metadata
- the details about expected sample data (must not benull
)floatFormatter
- the formatter to be used (the default formatter will be used, ifnull
is given.)
-
SampleBuilder
Construct a SampleBuilder with default formatter- Parameters:
metadata
- the details about expected sample data (must not benull
)
-
-
Method Details
-
getMetadata
- Returns:
- the metadata
-
add
-
add
-
add
-
build
-