| Modifier and Type | Method and Description |
|---|---|
static <T extends TreeSupportEntity<PK>,PK> |
TreeSupportEntity.expandTree2List(T parent,
IDGenerator<PK> idGenerator) |
static <T extends TreeSupportEntity<PK>,PK> |
TreeSupportEntity.expandTree2List(T parent,
List<T> target,
IDGenerator<PK> idGenerator) |
static <T extends TreeSupportEntity<PK>,PK> |
TreeSupportEntity.expandTree2List(T root,
List<T> target,
IDGenerator<PK> idGenerator,
BiConsumer<T,List<T>> childConsumer)
将树形结构转为列表结构,并填充对应的数据。
如树结构数据: {name:'父节点',children:[{name:'子节点1'},{name:'子节点2'}]} 解析后:[{id:'id1',name:'父节点',path:'aoSt'},{id:'id2',name:'子节点1',path:'aoSt-oS5a'},{id:'id3',name:'子节点2',path:'aoSt-uGpM'}] |
| Modifier and Type | Method and Description |
|---|---|
IDGenerator<K> |
ReactiveTreeSortEntityService.getIDGenerator() |
IDGenerator<K> |
TreeSortEntityService.getIDGenerator() |
| Modifier and Type | Method and Description |
|---|---|
IDGenerator<String> |
DefaultDictionaryItemService.getIDGenerator() |
| Modifier and Type | Field and Description |
|---|---|
static IDGenerator<String> |
IDGenerator.MD5
md5(uuid()+random())
|
static IDGenerator<?> |
IDGenerator.NULL
空ID生成器
|
static IDGenerator<String> |
IDGenerator.RANDOM
随机字符
|
static IDGenerator<Long> |
IDGenerator.SNOW_FLAKE
雪花算法
|
static IDGenerator<String> |
IDGenerator.SNOW_FLAKE_HEX
雪花算法的16进制
|
static IDGenerator<String> |
IDGenerator.SNOW_FLAKE_STRING
雪花算法转String
|
static IDGenerator<String> |
IDGenerator.UUID
使用UUID生成id
|
| Modifier and Type | Method and Description |
|---|---|
static <T> IDGenerator<T> |
IDGenerator.getNullGenerator() |
| Modifier and Type | Method and Description |
|---|---|
IDGenerator<String> |
DefaultDimensionService.getIDGenerator() |
Copyright © 2016–2021. All rights reserved.