public final class ObjectSequence extends Object
Constructor and Description |
---|
ObjectSequence(int id)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Integer |
getNext()
Retrieve the next value from the sequence.
|
void |
reset(int currentMaxValue)
Deprecated.
no longer used
|
void |
sync(Integer id)
Sync the sequence with a value known to be in use.
|
Integer |
syncOrGetNext(Integer id)
If the id is not null, sync the sequence with it.
|
public ObjectSequence(int id)
id
- initial value@Deprecated public void reset(int currentMaxValue)
currentMaxValue
- current maximum valuepublic void sync(Integer id)
id
- value in usepublic Integer getNext()
Copyright © 2000–2024 Packwood Software. All rights reserved.