@LoadLevel(name="default", order=200) public class DefaultShortCodeServiceImpl extends Object implements IShortCodeService
| Modifier and Type | Field and Description |
|---|---|
protected char[] |
charTable
字符集
|
protected String |
firstChar |
| Constructor and Description |
|---|
DefaultShortCodeServiceImpl() |
DefaultShortCodeServiceImpl(char[] charTable) |
| Modifier and Type | Method and Description |
|---|---|
String |
toCode(Long id)
long型ID 转换为 短字符串
|
long |
toId(String shortCode)
短字符串 转换为 long长整形ID
|
protected final char[] charTable
protected final String firstChar
public DefaultShortCodeServiceImpl()
public DefaultShortCodeServiceImpl(char[] charTable)
@NonNull public String toCode(@NonNull Long id)
IShortCodeServicetoCode in interface IShortCodeServiceid - ID(必须大于等于0)public long toId(@NonNull
String shortCode)
IShortCodeServicetoId in interface IShortCodeServiceshortCode - 短字符串Copyright © 2021–2022 EasyJ????. All rights reserved.