Package org.midheaven.math
Class LongsRandomGenerator
java.lang.Object
org.midheaven.math.LongsRandomGenerator
- All Implemented Interfaces:
DiscreteIntervalRandomGenerator<Long>,IntervalRandomGenerator<Long>,RandomGenerator<Long>
Generator for Longs Random values.
-
Method Summary
Modifier and TypeMethodDescriptionprotected final Randombase()Performs base.Performs between.betweenIncluding(Long lowerBound, Long upperBound) Performs betweenIncluding.protected final intcheckBounds(Long lowerBound, Long upperBound) protected intPerforms compare.next()Performs next.protected LongPerforms next.protected LongPerforms next.protected LongnextIncluding(Long upperBound) Returns next Including.protected LongnextIncluding(Long lowerBound, Long upperBound) Returns next Including.stream()Performs stream.Performs upTo.upToIncluding(Long upperBound) Performs upToIncluding.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
-
Method Details
-
nextIncluding
Returns next Including.- Parameters:
upperBound- the upperBound value- Returns:
- the result of nextIncluding
-
nextIncluding
Returns next Including.- Parameters:
lowerBound- the lowerBound valueupperBound- the upperBound value- Returns:
- the result of nextIncluding
-
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
-
compare
Performs compare.- Parameters:
a- the a valueb- the b value- Returns:
- the result of compare
-
next
Performs next.- Specified by:
nextin interfaceRandomGenerator<Long>- Returns:
- the result of next
-
stream
Performs stream.- Specified by:
streamin interfaceRandomGenerator<Long>- Returns:
- the result of stream
-
upToIncluding
Description copied from interface:DiscreteIntervalRandomGeneratorPerforms upToIncluding.- Specified by:
upToIncludingin interfaceDiscreteIntervalRandomGenerator<T>- Parameters:
upperBound- the upperBound value- Returns:
- the result of upToIncluding
-
betweenIncluding
Description copied from interface:DiscreteIntervalRandomGeneratorPerforms betweenIncluding.- Specified by:
betweenIncludingin interfaceDiscreteIntervalRandomGenerator<T>- Parameters:
lowerBound- the lowerBound valueupperBound- the upperBound value- Returns:
- the result of betweenIncluding
-
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
-