| Package | Description |
|---|---|
| org.hswebframework.web.api.crud.entity | |
| org.hswebframework.web.dictionary.entity | |
| org.hswebframework.web.system.authorization.api.entity |
| Modifier and Type | Interface and Description |
|---|---|
interface |
TreeSortSupportEntity<PK>
支持树形结构,排序的实体类,要使用树形结构,排序功能的实体类直接继承该类
|
| Modifier and Type | Class and Description |
|---|---|
class |
GenericTreeSortSupportEntity<PK>
支持树形结构,排序的实体类,要使用树形结构,排序功能的实体类直接继承该类
|
| 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'}] |
static <T extends TreeSupportEntity> |
TreeSupportEntity.forEach(Collection<T> list,
Consumer<T> consumer) |
<T extends TreeSupportEntity<PK>> |
TreeSupportEntity.getChildren() |
static <N extends TreeSupportEntity<PK>,PK> |
TreeSupportEntity.list2tree(Collection<N> dataList,
BiConsumer<N,List<N>> childConsumer)
集合转为树形结构,返回根节点集合
|
static <N extends TreeSupportEntity<PK>,PK> |
TreeSupportEntity.list2tree(Collection<N> dataList,
BiConsumer<N,List<N>> childConsumer,
Function<TreeSupportEntity.TreeHelper<N,PK>,Predicate<N>> predicateFunction)
列表结构转为树结构,并返回根节点集合
|
static <N extends TreeSupportEntity<PK>,PK> |
TreeSupportEntity.list2tree(Collection<N> dataList,
BiConsumer<N,List<N>> childConsumer,
Predicate<N> rootNodePredicate) |
| Modifier and Type | Class and Description |
|---|---|
class |
DictionaryItemEntity
数据字典选项
|
| Modifier and Type | Class and Description |
|---|---|
class |
DimensionEntity |
Copyright © 2016–2021. All rights reserved.