Package nl._42.beanie.generator.random
Class RandomLocalTimeGenerator
- java.lang.Object
-
- nl._42.beanie.generator.random.RandomLocalTimeGenerator
-
- All Implemented Interfaces:
ValueGenerator
public class RandomLocalTimeGenerator extends java.lang.Object implements ValueGenerator
- Since:
- Oct 14, 2014
- Author:
- jeroen
-
-
Constructor Summary
Constructors Constructor Description RandomLocalTimeGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.time.LocalTime
generate(java.lang.Class<?> type)
Generate a new value of the specified type.java.math.BigDecimal
randomBigDecimal()
java.math.BigDecimal
randomBigDecimal(double maximum)
boolean
randomBoolean(double d)
double
randomDouble()
double
randomDouble(double maximum)
int
randomInt(int n)
int
randomInt(int minimum, int maximum)
long
randomLong(int maximum)
long
randomLong(int minimum, int maximum)
-
-
-
Method Detail
-
generate
public java.time.LocalTime generate(java.lang.Class<?> type)
Description copied from interface:ValueGenerator
Generate a new value of the specified type.- Specified by:
generate
in interfaceValueGenerator
- Parameters:
type
- the type of value- Returns:
- the generation value
-
randomInt
public int randomInt(int n)
-
randomBoolean
public boolean randomBoolean(double d)
-
randomInt
public int randomInt(int minimum, int maximum)
-
randomLong
public long randomLong(int maximum)
-
randomLong
public long randomLong(int minimum, int maximum)
-
randomDouble
public double randomDouble()
-
randomDouble
public double randomDouble(double maximum)
-
randomBigDecimal
public java.math.BigDecimal randomBigDecimal()
-
randomBigDecimal
public java.math.BigDecimal randomBigDecimal(double maximum)
-
-