Package ru.ispras.fortress.randomizer
Class VariateInterval<T>
- java.lang.Object
-
- ru.ispras.fortress.randomizer.VariateInterval<T>
-
-
Constructor Summary
Constructors Constructor Description VariateInterval(T min, T max)
Constructs an interval random variate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
value()
Returns a value (instance) of the random variate.
-
-
-
Constructor Detail
-
VariateInterval
public VariateInterval(T min, T max)
Constructs an interval random variate.- Parameters:
min
- the lower bound of the interval.max
- the upper bound of the interval.- Throws:
java.lang.IllegalArgumentException
- (1) ifmin == null
ormax == null
; (2) if min and max have incompatible types; (3) ifmin > max
; (4) if the value type is unsupported.
-
-