T - number type to generatepublic abstract class AbstractRandomNumberType<T extends Comparable<? extends Number>> extends Object implements RandomNumberType<T>
Abstract implementation of RandomNumberType holding the type of numbers to create.
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractRandomNumberType(Class<T> type)
Constructor specifying type of random numbers.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkPercentageArgument(double percent)
Verifies that the given percentage is between 0 and 1.
|
Class<T> |
getType()
Type of the number.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitmax, min, percentOf, sum@Nonnull public final Class<T> getType()
RandomNumberTypegetType in interface RandomNumberType<T extends Comparable<? extends Number>>protected void checkPercentageArgument(double percent)
percent - percentage value to checkIllegalArgumentException - if percentage is out of the valid boundsCopyright © 2011-2013 CoreMedia AG. All Rights Reserved.