instead@Deprecated public class RangeDistributionBuilder extends Object implements MeasureBuilder
An example of usage : you wish to record the percentage of lines of code that belong to method with pre-defined ranges of complexity.
| Constructor and Description | 
|---|
| RangeDistributionBuilder(Metric<String> metric)Deprecated.  | 
| RangeDistributionBuilder(Metric<String> metric,
                        Number[] bottomLimits)Deprecated.  RangeDistributionBuilder for a metric and a defined range
 Each entry is initialized at zero | 
| Modifier and Type | Method and Description | 
|---|---|
| RangeDistributionBuilder | add(Measure<String> measure)Deprecated.  Adds an existing Distribution to the current one. | 
| RangeDistributionBuilder | add(Number value)Deprecated.  Increments an entry by 1 | 
| RangeDistributionBuilder | add(Number value,
   int count)Deprecated.  Increments an entry | 
| Measure<String> | build()Deprecated.  Shortcut for  build(true) | 
| Measure<String> | build(boolean allowEmptyData)Deprecated.  Used to build a measure from the current object | 
| RangeDistributionBuilder | clear()Deprecated.  Resets all entries to zero | 
| Number[] | getBottomLimits()Deprecated.  Gives the bottom limits of ranges used | 
| boolean | isEmpty()Deprecated.  | 
public RangeDistributionBuilder(Metric<String> metric, Number[] bottomLimits)
metric - the metric to record the measure againstbottomLimits - the bottom limits of ranges to be usedpublic RangeDistributionBuilder(Metric<String> metric)
public Number[] getBottomLimits()
public RangeDistributionBuilder add(Number value)
value - the value to use to pick the entry to incrementpublic RangeDistributionBuilder add(@Nullable Number value, int count)
value - the value to use to pick the entry to incrementcount - the number by which to incrementpublic RangeDistributionBuilder add(@Nullable Measure<String> measure)
measure - the measure to add to the current onepublic RangeDistributionBuilder clear()
public boolean isEmpty()
public Measure<String> build()
build(true)build in interface MeasureBuilderCopyright © 2009–2016 SonarSource. All rights reserved.