public static class TimeOrderedEpochFactory.Builder extends AbstCombFactory.Builder<TimeOrderedEpochFactory,TimeOrderedEpochFactory.Builder>
AbstCombFactory.BuildertimeFunctionrandom| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
TimeOrderedEpochFactory |
build()
Finishes the factory building.
|
protected long |
getIncrementMax()
Get the max increment.
|
protected int |
getIncrementType()
Set the increment type.
|
TimeOrderedEpochFactory.Builder |
withIncrementPlus1()
Set the increment type to PLUS 1.
|
TimeOrderedEpochFactory.Builder |
withIncrementPlusN()
Set the increment type to PLUS N.
|
TimeOrderedEpochFactory.Builder |
withIncrementPlusN(long incrementMax)
Set the increment type to PLUS N and set the max increment.
|
getTimeFunction, withClock, withTimeFunctiongetRandom, withFastRandom, withRandom, withRandomFunction, withSafeRandompublic TimeOrderedEpochFactory.Builder withIncrementPlus1()
public TimeOrderedEpochFactory.Builder withIncrementPlusN()
public TimeOrderedEpochFactory.Builder withIncrementPlusN(long incrementMax)
incrementMax - a numberprotected int getIncrementType()
protected long getIncrementMax()
public TimeOrderedEpochFactory build()
AbstRandomBasedFactory.Builderbuild in class AbstRandomBasedFactory.Builder<TimeOrderedEpochFactory,TimeOrderedEpochFactory.Builder>Copyright © 2024. All rights reserved.