TreeAlgorithmBase
Contents
[
Hide
]Inheritance: java.lang.Object
All Implemented Interfaces: com.aspose.tasks.ITreeAlgorithm
public abstract class TreeAlgorithmBase<T> implements ITreeAlgorithm<T>
A base class for implementations of ITreeAlgorithm<T>
T : The type of the elements.
Constructors
Constructor | Description |
---|---|
TreeAlgorithmBase() |
Methods
Method | Description |
---|---|
alg(T el, int level) | Processes a node of a tree. |
postAlg(T el, int level) | Called after processing of a node of a tree. |
preAlg(T el, int level) | Called before processing of a node of a tree. |
TreeAlgorithmBase()
public TreeAlgorithmBase()
alg(T el, int level)
public abstract void alg(T el, int level)
Processes a node of a tree.
Parameters:
Parameter | Type | Description |
---|---|---|
el | T | Node to process. |
level | int | Tree node level. |
postAlg(T el, int level)
public void postAlg(T el, int level)
Called after processing of a node of a tree.
Parameters:
Parameter | Type | Description |
---|---|---|
el | T | Node to process. |
level | int | Tree node level. |
preAlg(T el, int level)
public void preAlg(T el, int level)
Called before processing of a node of a tree.
Parameters:
Parameter | Type | Description |
---|---|---|
el | T | Node to process. |
level | int | Tree node level. |