Package org.midheaven.math
Class LocalDatesRandomGenerator
java.lang.Object
org.midheaven.math.LocalDatesRandomGenerator
- All Implemented Interfaces:
DiscreteIntervalRandomGenerator<LocalDate>,IntervalRandomGenerator<LocalDate>,RandomGenerator<LocalDate>
public final class LocalDatesRandomGenerator
extends Object
implements IntervalRandomGenerator<LocalDate>
Generator for Local Dates Random values.
-
Method Summary
Modifier and TypeMethodDescriptionprotected final Randombase()Performs base.Performs between.betweenIncluding(LocalDate lowerBound, LocalDate upperBound) Performs betweenIncluding.protected final intcheckBounds(LocalDate lowerBound, LocalDate upperBound) protected intnext()The next generated valueprotected LocalDateprotected LocalDateprotected LocalDatenextIncluding(LocalDate upperBound) protected LocalDatenextIncluding(LocalDate lowerBound, LocalDate upperBound) Performs upTo.upToIncluding(LocalDate 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, stream
-
Method Details
-
compare
-
nextIncluding
-
nextIncluding
-
next
-
next
-
next
Description copied from interface:RandomGeneratorThe next generated value- Specified by:
nextin interfaceRandomGenerator<LocalDate>- Returns:
- the next generated value
-
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
-