byucc.edif
Class BasicStringIncrementer

java.lang.Object
  extended by byucc.edif.BasicStringIncrementer

public class BasicStringIncrementer
extends java.lang.Object

Provides methods for "incrementing" a String value. Incrementing is a convenient way of creating unique String names in a deterministic manner.

Author:
Mike Wirthlin

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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicStringIncrementer

public BasicStringIncrementer()
Method Detail

incrementString

public static java.lang.String incrementString(java.lang.String str)
Provide a new String

Returns:

incrementDigit

public static char incrementDigit(char c)
This method will perform an "increment" on a character. This method will sequence from 'a' to 'z' and then from '0' to '9'. After reaching '9', this method will return back to 'a'. This method will return 0 if the character is invalid. This method is case insensitive and will return a lower case incremented character.

Parameters:
c - The character to increment.
Returns:
The incremented character