public class SectionUniqueIdCounter extends Object
Constructor and Description |
---|
SectionUniqueIdCounter() |
SectionUniqueIdCounter(String prefix) |
SectionUniqueIdCounter(String prefix,
int radix) |
SectionUniqueIdCounter(String prefix,
String[] cache) |
Modifier and Type | Method and Description |
---|---|
void |
endUniqueIdSection() |
void |
endUniqueIdSection(String base) |
String |
generateUniqueId() |
void |
generateUniqueId(StringBuilder builderToAdd) |
static String[] |
generateUniqueIdCache(String prefix,
int count)
Creates an array of the generated unique ids for an specified prefix,
than can be used later to prevent calculate the same String over and over.
|
void |
incrementUniqueId() |
String |
startUniqueIdSection() |
String |
startUniqueIdSection(String base) |
public SectionUniqueIdCounter()
public SectionUniqueIdCounter(String prefix)
public SectionUniqueIdCounter(String prefix, int radix)
public static String[] generateUniqueIdCache(String prefix, int count)
prefix
- count
- public String startUniqueIdSection()
public String generateUniqueId()
public void generateUniqueId(StringBuilder builderToAdd)
public void incrementUniqueId()
public void endUniqueIdSection()
public void endUniqueIdSection(String base)
Copyright © 2020 The Apache Software Foundation. All rights reserved.