Jagger
 All Classes Namespaces Files Functions Variables Enumerator Groups Pages
static JHttpResponseStatusValidatorProvider com.griddynamics.jagger.engine.e1.collector.JHttpResponseStatusValidatorProvider.of ( IntStream  range)
static
Parameters
rangeIntStream of valid codes
Returns
new JHttpResponseStatusValidatorProvider with valid codes provided in range Usage:
JHttpResponseStatusValidatorProvider validator = JHttpResponseStatusValidatorProvider.of(IntStream.range(200, 399)); // from 200 inclusive to 399 exclusive
// or
JHttpResponseStatusValidatorProvider validator = JHttpResponseStatusValidatorProvider.of(IntStream.rangeClosed(200, 399)); // from 200 inclusive to 399 inclusive

Definition at line 79 of file JHttpResponseStatusValidatorProvider.java.

79  {
80  return new JHttpResponseStatusValidatorProvider(range.boxed().collect(toSet()));
81  }