Package org.stubit.random
Class RandomNumber.RandomLongBuilder
java.lang.Object
org.stubit.random.RandomNumber.RandomLongBuilder
- All Implemented Interfaces:
RandomNumber.RandomNumberBuilder<Long>
- Enclosing class:
- RandomNumber
public static class RandomNumber.RandomLongBuilder
extends Object
implements RandomNumber.RandomNumberBuilder<Long>
RandomNumber.RandomNumberBuilder implementation for Longs-
Method Summary
Modifier and TypeMethodDescriptionbuild()negative()SetsminInclusivetoLong.MIN_VALUEand max to -1.positive()
-
Method Details
-
positive
- Specified by:
positivein interfaceRandomNumber.RandomNumberBuilder<Long>- Returns:
- this
-
negative
SetsminInclusivetoLong.MIN_VALUEand max to -1.- Specified by:
negativein interfaceRandomNumber.RandomNumberBuilder<Long>- Returns:
- this
-
min
- Specified by:
minin interfaceRandomNumber.RandomNumberBuilder<Long>- Parameters:
minInclusive- the minimum value (inclusive)- Returns:
- this
-
max
- Specified by:
maxin interfaceRandomNumber.RandomNumberBuilder<Long>- Parameters:
maxInclusive- the maximum value (inclusive)- Returns:
- this
-
build
- Specified by:
buildin interfaceRandomNumber.RandomNumberBuilder<Long>- Returns:
- a random integer between
RandomNumber.RandomNumberBuilder.min(N)andRandomNumber.RandomNumberBuilder.max(N)
-