| Modifier and Type | Class and Description |
|---|---|
static class |
RandomIntGenerator.Companion |
Generator.DefaultImpls| Modifier and Type | Field and Description |
|---|---|
static RandomIntGenerator.Companion |
Companion |
| Constructor and Description |
|---|
RandomIntGenerator(int min,
int max)
Generates a random integer between a min and max value
|
| Modifier and Type | Method and Description |
|---|---|
int |
component1() |
int |
component2() |
RandomIntGenerator |
copy(int min,
int max)
Generates a random integer between a min and max value
|
boolean |
equals(java.lang.Object p) |
java.lang.Object |
generate(java.util.Map<java.lang.String,? extends java.lang.Object> context) |
int |
getMax() |
int |
getMin() |
int |
hashCode() |
java.util.Map<java.lang.String,java.lang.Object> |
toMap(PactSpecVersion pactSpecVersion) |
java.lang.String |
toString() |
correspondsToMode, generate, toMappublic static RandomIntGenerator.Companion Companion
public RandomIntGenerator(int min,
int max)
Generates a random integer between a min and max value
public java.util.Map<java.lang.String,java.lang.Object> toMap(PactSpecVersion pactSpecVersion)
public java.lang.Object generate(java.util.Map<java.lang.String,? extends java.lang.Object> context)
public int getMin()
public int getMax()
public int component1()
public int component2()
public RandomIntGenerator copy(int min, int max)
Generates a random integer between a min and max value
public java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object p)