public interface IAlgorithm<T>
Represents an algorithm that can be applied to a list of objects T
.
T
: The type of object to apply method interface to.
Modifier and Type | Method and Description |
---|---|
void |
alg(T el,
int index)
Processes an object in the list.
|
void |
postAlg(T el,
int index)
Called after processing of an object.
|
void |
preAlg(T el,
int index)
Called before processing of an object.
|
void alg(T el, int index)
Processes an object in the list. Called after IAlgorithm
;
el
- Processed object.index
- Index of the object.void postAlg(T el, int index)
Called after processing of an object.
el
- Processed object.index
- Index of the object.void preAlg(T el, int index)
Called before processing of an object.
el
- Processed object.index
- Index of the object.