public interface ITreeAlgorithm<T>
Represents an algorithm that can be applied to a tree of objects T
.
T
: The type of object to apply method interface to.
Modifier and Type | Method and Description |
---|---|
void |
alg(T el,
int level)
Processes a node of a tree.
|
void |
postAlg(T el,
int level)
Called after processing of a node of a tree.
|
void |
preAlg(T el,
int level)
Called before processing of a node of a tree.
|
void alg(T el, int level)
Processes a node of a tree. Called after PreAlg().
el
- Node to process.level
- Tree node level.void postAlg(T el, int level)
Called after processing of a node of a tree.
el
- Node to process.level
- Tree node level.void preAlg(T el, int level)
Called before processing of a node of a tree.
el
- Node to process.level
- Tree node level.