public final class FixedIdGenerator extends Object implements IdGenerator
Important: Do not use outside of Soy code (treat as superpackage-private).
| Constructor and Description |
|---|
FixedIdGenerator()
Constructor that does not take a value for the fixed id to be generated.
|
FixedIdGenerator(int fixedId)
Constructor that takes a value for the fixed id to be generated.
|
| Modifier and Type | Method and Description |
|---|---|
FixedIdGenerator |
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 FixedIdGenerator(int fixedId)
fixedId - The value for the fixed id to be generated.public FixedIdGenerator()
public int genId()
IdGeneratorgenId in interface IdGeneratorpublic FixedIdGenerator copy()
IdGeneratorcopy in interface IdGenerator