Jagger
 All Classes Namespaces Files Functions Variables Enumerator Groups Pages
JLimitVsBaseline.java
Go to the documentation of this file.
1 package com.griddynamics.jagger.user.test.configurations.limits;
2 
3 import com.griddynamics.jagger.user.test.configurations.limits.auxiliary.JMetricName;
4 
5 import java.util.Objects;
6 
10 public class JLimitVsBaseline extends JLimit {
11 
13  super(builder);
14  }
15 
22  public static Builder builder(String metricName) {
23  return new Builder(metricName);
24  }
25 
32  public static Builder builder(JMetricName metricName) {
33  return new Builder(metricName.transformToString());
34  }
35 
36  public static class Builder extends JLimit.Builder {
37 
38  private Builder(String metricName) {
39  Objects.requireNonNull(metricName);
40  this.metricName = metricName;
41  }
42 
43  @Override
44  public JLimit build() {
45  return new JLimitVsBaseline(this);
46  }
47  }
48 }