Package uk.co.ractf.polaris.api.random
Class RandomEnvInteger
- java.lang.Object
-
- uk.co.ractf.polaris.api.common.JsonRepresentable
-
- uk.co.ractf.polaris.api.random.RandomEnv
-
- uk.co.ractf.polaris.api.random.RandomEnvInteger
-
public class RandomEnvInteger extends RandomEnv
Represents a randomly generated integer environment variable{ "type": "int", "min": 60, "max": 120 }
-
-
Constructor Summary
Constructors Constructor Description RandomEnvInteger(java.lang.String type, java.lang.String display, java.lang.Integer min, java.lang.Integer max)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.String
generate()
java.lang.Integer
getMax()
java.lang.Integer
getMin()
int
hashCode()
-
Methods inherited from class uk.co.ractf.polaris.api.random.RandomEnv
getDisplay, getType
-
Methods inherited from class uk.co.ractf.polaris.api.common.JsonRepresentable
parse, toJsonString
-
-
-
-
Method Detail
-
getMin
public java.lang.Integer getMin()
-
getMax
public java.lang.Integer getMax()
-
generate
public java.lang.String generate()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-