@ThreadSafe public abstract class RandCode extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
RandCode.Seed |
| Modifier and Type | Field and Description |
|---|---|
static RandCode.Seed |
B32 |
static RandCode.Seed |
Cjk
800 Chinese Chars Commonly Used in China, Japan and Korea
|
static RandCode.Seed |
Hex |
static RandCode.Seed |
Low |
static RandCode.Seed |
Num |
static RandCode.Seed |
Sur
Family Names of chinese
|
static RandCode.Seed |
Sym |
static RandCode.Seed |
Upr |
| Constructor and Description |
|---|
RandCode() |
| Modifier and Type | Method and Description |
|---|---|
static String |
cjk(int len)
Generate `len` length code of 800 Chinese Chars Commonly Used in China, Japan and Korea
|
static @NotNull String |
hex(int len)
Generate `len` length code of hex (0-9A-F)
|
static String |
human(int len)
Generate `len` length code with good readability of 32 chars.
|
static String |
letter(int len)
Generate `len` length code of letter (a-zA-Z)
|
static String |
lower(int len)
Generate `len` length code of lower (a-z)
|
static String |
mix(int len)
Generate `len` length code mixed chinese and english
|
static String |
next(int len,
RandCode.Seed... seeds) |
static String |
next(int len,
Random random,
RandCode.Seed... seeds) |
static String |
number(int len)
Generate `len` length code of number (0-9)
|
static String |
numlet(int len)
Generate `len` length code of number and letter (0-9a-zA-Z)
|
static @NotNull String |
oil(int len)
Generate `len` length de-oiled code (0-9A-Z without UOIL)
|
static String |
strong(int len)
Generate `len` length code with number, letter and symbolic
|
static String |
sur()
random get one of Family Names of chinese
|
static String |
sur(int len)
Generate `len` length code of Family Names of chinese
|
static String |
upper(int len)
Generate `len` length code of upper (A-Z)
|
public static final RandCode.Seed Num
public static final RandCode.Seed Low
public static final RandCode.Seed Upr
public static final RandCode.Seed Sym
public static final RandCode.Seed B32
public static final RandCode.Seed Hex
public static final RandCode.Seed Cjk
public static final RandCode.Seed Sur
@NotNull public static @NotNull String hex(int len)
@NotNull public static @NotNull String oil(int len)
public static String number(int len)
public static String lower(int len)
public static String upper(int len)
public static String letter(int len)
public static String numlet(int len)
public static String strong(int len)
public static String human(int len)
Generate `len` length code with good readability of 32 chars. from 62 chars remove 30 (0oO,1il,cC,j,kK,mM,nN,pP,sS,uU,vV,wW,xX,y,zZ)
public static String cjk(int len)
public static String mix(int len)
public static String sur()
public static String sur(int len)
public static String next(int len, RandCode.Seed... seeds)
public static String next(int len, Random random, RandCode.Seed... seeds)
Copyright © 2024. All rights reserved.