T - ID类型public class TreeMap<T> extends LinkedHashMap<String,Object> implements Comparable<TreeMap<T>>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
TreeMap() |
TreeMap(TreeEntity treeEntity)
构造
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(TreeMap<T> treeMap) |
List<TreeMap<T>> |
getChildren() |
T |
getId()
获取节点ID
|
T |
getName() |
T |
getParentId()
获取父节点ID
|
Comparable<?> |
getWeight() |
void |
putExtra(String key,
Object value)
扩展属性
|
void |
setChildren(List<TreeMap<T>> children) |
TreeMap<T> |
setId(T id)
设置节点ID
|
TreeMap<T> |
setName(Object name) |
TreeMap<T> |
setParentId(T parentId) |
TreeMap<T> |
setWeight(Comparable<?> weight) |
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, valuesclone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizeequals, hashCode, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizepublic TreeMap()
public TreeMap(TreeEntity treeEntity)
treeEntity - TreeNode配置public T getId()
public T getParentId()
public T getName()
public Comparable<?> getWeight()
public TreeMap<T> setWeight(Comparable<?> weight)
Copyright © 2020. All rights reserved.