Package org.midheaven.math
Class BigDecimalsRandomGenerator
java.lang.Object
org.midheaven.math.BigDecimalsRandomGenerator
- All Implemented Interfaces:
IntervalRandomGenerator<BigDecimal>,RandomGenerator<BigDecimal>
public final class BigDecimalsRandomGenerator
extends Object
implements IntervalRandomGenerator<BigDecimal>
Generator for Big Decimals Random values.
-
Method Summary
Modifier and TypeMethodDescriptionprotected final Randombase()Performs base.between(BigDecimal lowerBound, BigDecimal upperBound) Performs between.protected final intcheckBounds(BigDecimal lowerBound, BigDecimal upperBound) protected intcompare(BigDecimal a, BigDecimal b) Performs compare.next()Performs next.protected BigDecimalnext(BigDecimal upperBound) Performs next.protected BigDecimalnext(BigDecimal lowerBound, BigDecimal upperBound) Performs next.upTo(BigDecimal upperBound) Performs upTo.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.midheaven.math.IntervalRandomGenerator
between, upToMethods inherited from interface org.midheaven.math.RandomGenerator
generateNext, stream
-
Method Details
-
compare
Performs compare.- Parameters:
a- the a valueb- the b value- Returns:
- the result of compare
-
next
Performs next.- Specified by:
nextin interfaceRandomGenerator<BigDecimal>- Returns:
- the result of next
-
next
Performs next.- Parameters:
upperBound- the upperBound value- Returns:
- the result of next
-
next
Performs next.- Parameters:
lowerBound- the lowerBound valueupperBound- the upperBound value- Returns:
- the result of next
-
upTo
Description copied from interface:IntervalRandomGeneratorPerforms upTo.- Specified by:
upToin interfaceIntervalRandomGenerator<T>- Parameters:
upperBound- the upperBound value- Returns:
- the result of upTo
-
between
Description copied from interface:IntervalRandomGeneratorPerforms between.- Specified by:
betweenin interfaceIntervalRandomGenerator<T>- Parameters:
lowerBound- the lowerBound valueupperBound- the upperBound value- Returns:
- the result of between
-
checkBounds
-
base
Performs base.- Returns:
- the result of base
-