Jagger
 All Classes Namespaces Files Functions Variables Enumerator Groups Pages
InvocationCount.java
Go to the documentation of this file.
1 package com.griddynamics.jagger.user.test.configurations.load.auxiliary;
2 
6 public class InvocationCount {
7  private final int invocationCount;
8 
9  private InvocationCount(int invocationCount) {
10  if (invocationCount <= 0) {
11  throw new IllegalArgumentException(String.format("Number of invocation must be > 0. Provided value is %s", invocationCount));
12  }
13  this.invocationCount = invocationCount;
14  }
15 
16  public int value() {
17  return invocationCount;
18  }
19 
20  public static InvocationCount of(int invocationCount) {
21  return new InvocationCount(invocationCount);
22  }
23 }