T - the node id typeA - the attachment biz object typepublic abstract class BaseNode<T extends Serializable & Comparable<T>,A> extends Object implements Serializable, Cloneable
| 限定符和类型 | 字段和说明 |
|---|---|
protected A |
attach |
protected boolean |
available |
protected int |
childrenCount |
protected int |
degree |
protected boolean |
enabled |
protected int |
leftLeafCount |
protected int |
level |
protected T |
nid |
protected List<T> |
path |
protected T |
pid |
protected int |
siblingOrdinal |
protected int |
treeDepth |
protected int |
treeLeafCount |
protected int |
treeMaxDegree |
protected int |
treeNodeCount |
| 限定符 | 构造器和说明 |
|---|---|
protected |
BaseNode(T nid,
T pid,
A attach) |
protected |
BaseNode(T nid,
T pid,
boolean enabled,
A attach) |
protected |
BaseNode(T nid,
T pid,
boolean enabled,
boolean available,
A attach) |
| 限定符和类型 | 方法和说明 |
|---|---|
BaseNode<T,A> |
clone()
Deep copy
|
A |
getAttach() |
int |
getChildrenCount() |
int |
getDegree() |
int |
getLeftLeafCount() |
int |
getLevel() |
T |
getNid() |
List<T> |
getPath() |
T |
getPid() |
int |
getSiblingOrdinal() |
int |
getTreeDepth() |
int |
getTreeLeafCount() |
int |
getTreeMaxDegree() |
int |
getTreeNodeCount() |
boolean |
isAvailable() |
boolean |
isEnabled() |
protected final T extends Serializable & Comparable<T> nid
protected final T extends Serializable & Comparable<T> pid
protected final boolean enabled
protected final boolean available
protected final A attach
protected int level
protected List<T extends Serializable & Comparable<T>> path
protected int degree
protected int leftLeafCount
protected int treeDepth
protected int treeNodeCount
protected int treeMaxDegree
protected int treeLeafCount
protected int childrenCount
protected int siblingOrdinal
public T getNid()
public T getPid()
public boolean isEnabled()
public boolean isAvailable()
public A getAttach()
public int getLevel()
public int getDegree()
public int getLeftLeafCount()
public int getTreeDepth()
public int getTreeNodeCount()
public int getTreeMaxDegree()
public int getTreeLeafCount()
public int getChildrenCount()
public int getSiblingOrdinal()
Copyright © 2024. All rights reserved.