|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object installtoolkit.wix.IdGenarator
public class IdGenarator
Helper class to generate ids from a prefix and a number.
Field Summary | |
---|---|
protected long |
counter
|
(package private) java.text.DecimalFormat |
format
|
protected long |
maximum
|
Constructor Summary | |
---|---|
IdGenarator(int digits,
java.lang.String prefix)
|
Method Summary | |
---|---|
java.lang.String |
next()
get the next ID as String |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected long maximum
java.text.DecimalFormat format
protected long counter
Constructor Detail |
---|
public IdGenarator(int digits, java.lang.String prefix)
digits
- Number of digits for the numeric partprefix
- PrefixMethod Detail |
---|
public java.lang.String next()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |