public final class IdCodeGenerator extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
CODE_END
The ending ascii character used in code generation.
|
static int |
CODE_LENGTH
The default code length.
|
static int |
CODE_START
The starting ascii character used in code generation.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
generateCode()
Generates a code with default length (CODE_LENGTH).
|
static String |
generateCode(int length)
Generates a code of given length.
|
static String |
generateCustomCode(char[] chars,
int length)
Generates a code of given length from supplied chars.
|
public static final int CODE_LENGTH
public static final int CODE_START
public static final int CODE_END
public static String generateCustomCode(char[] chars, int length)
chars - length - public static String generateCode(int length)
length - public static String generateCode()
Copyright © 2010-2014 anotheria.net. All Rights Reserved.