Package helpers
Class Generator
- java.lang.Object
-
- helpers.Generator
-
public class Generator extends java.lang.Object
Helper methods and utilities- Author:
- gabrieleromanato
-
-
Constructor Summary
Constructors Constructor Description Generator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
createNumber(int min, int max)
Creates a random number between min and maxstatic java.lang.String
createPlateNumber()
Creates a random plate number in the format letterletter-digitsstatic java.lang.String
getRandomClasseTariffaria()
Gets a random classe tariffaria
-
-
-
Method Detail
-
createPlateNumber
public static java.lang.String createPlateNumber()
Creates a random plate number in the format letterletter-digits- Parameters:
None
-- Returns:
- String
-
createNumber
public static int createNumber(int min, int max)
Creates a random number between min and max- Parameters:
min
- Minimum valuemax
- Maximum value- Returns:
- int Random number
-
getRandomClasseTariffaria
public static java.lang.String getRandomClasseTariffaria()
Gets a random classe tariffaria- Parameters:
None
-- Returns:
- String Name of the classe tariffaria
-
-