|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectbyucc.edif.BasicStringIncrementer
public class BasicStringIncrementer
Provides methods for "incrementing" a String value. Incrementing is a convenient way of creating unique String names in a deterministic manner.
| Constructor Summary | |
|---|---|
BasicStringIncrementer()
|
|
| Method Summary | |
|---|---|
static char |
incrementDigit(char c)
This method will perform an "increment" on a character. |
static java.lang.String |
incrementString(java.lang.String str)
Provide a new String |
static java.lang.String |
incrementString(java.lang.String str,
int origLength)
Increment a string by appending a "_" + num to the end of it. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BasicStringIncrementer()
| Method Detail |
|---|
public static char incrementDigit(char c)
c - The character to increment.
public static java.lang.String incrementString(java.lang.String str)
public static java.lang.String incrementString(java.lang.String str,
int origLength)
str - the String to incrementorigLength - the original length of the string to increment
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||