Package rs.baselib.test
Class LongBuilder
java.lang.Object
rs.baselib.test.LongBuilder
A Long builder.
- Author:
- ralph
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the previously configured object.withEnd
(long end) Set a given max number (for random numbers only).withOffset
(long offset) Set a given increment/decrement for each build.Set random creation.withStart
(long start) Start the build with a given long.
-
Constructor Details
-
LongBuilder
public LongBuilder()Constructor.
-
-
Method Details
-
withStart
Start the build with a given long.- Parameters:
start
- - the first number to produce- Returns:
- this builder for concatenation
-
withOffset
Set a given increment/decrement for each build.- Parameters:
offset
- - the increment/decrement to produce- Returns:
- this builder for concatenation
-
withEnd
Set a given max number (for random numbers only).- Parameters:
end
- - the max number to use- Returns:
- this builder for concatenation
-
withRandom
Set random creation.- Returns:
- this builder for concatenation
-
build
Build the previously configured object.
-