public enum TreeWalkType extends Enum<TreeWalkType>
Указывает тип обхода
Древо:| (1) Корень | |||||||
| (2) Узел | (3) Узел | ||||||
| (4) Узел | (5) Узел | (6) Узел | (7) Узел | ||||
| (8) Лист | (9) Лист | (10) Лист | (11) Лист | (12) Лист | (13) Лист | (14) Лист | (15) Лист |
| Enum Constant and Description |
|---|
ByBranchBackward
Обход по ветвьям в обратной последовательности
|
ByBranchForward
Обход по ветвьям в прямой последовательности
|
ByLevel
Обход по уровням сверху вниз
|
| Modifier and Type | Method and Description |
|---|---|
static TreeWalkType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TreeWalkType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TreeWalkType ByLevel
public static final TreeWalkType ByBranchForward
public static final TreeWalkType ByBranchBackward
public static TreeWalkType[] values()
for (TreeWalkType c : TreeWalkType.values()) System.out.println(c);
public static TreeWalkType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2017. All rights reserved.