public final class IncrementingIdGenerator extends Object implements IdGenerator
Important: Do not use outside of Soy code (treat as superpackage-private).
| Constructor and Description |
|---|
IncrementingIdGenerator() |
| Modifier and Type | Method and Description |
|---|---|
IncrementingIdGenerator |
copy()
Clones this id generator, such that the original and new generators will generate the same list
of ids going forward.
|
int |
genId()
Generates and returns an id.
|
public int genId()
IdGeneratorgenId in interface IdGeneratorpublic IncrementingIdGenerator copy()
IdGeneratorcopy in interface IdGenerator