|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public static interface TreeList.Format<E>
Define the tree structure of an node by expressing the path from the element itself to the tree's root.
| Method Summary | |
|---|---|
boolean |
allowsChildren(E element)
Whether an element can have children. |
Comparator<? super E> |
getComparator(int depth)
Returns the comparator used to order path elements of the specified depth. |
void |
getPath(List<E> path,
E element)
Populate path with a list describing the path from a root node to this element. |
| Method Detail |
|---|
void getPath(List<E> path,
E element)
path - a list that the implementor shall add their path
elements to via path.add(). This may be a non-empty
List and it is an error to call any method other than add().boolean allowsChildren(E element)
true if this element can have child elements,
or false if it is always a leaf node.Comparator<? super E> getComparator(int depth)
null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||