IAlgorithm
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.
Methods
Method | Description |
---|---|
alg(T el, int index) | Processes an object in the list. |
postAlg(T el, int index) | Called after processing of an object. |
preAlg(T el, int index) | Called before processing of an object. |
alg(T el, int index)
public abstract void alg(T el, int index)
Processes an object in the list. Called after preAlg(T, int);
Parameters:
Parameter | Type | Description |
---|---|---|
el | T | Processed object. |
index | int | Index of the object. |
postAlg(T el, int index)
public abstract void postAlg(T el, int index)
Called after processing of an object.
Parameters:
Parameter | Type | Description |
---|---|---|
el | T | Processed object. |
index | int | Index of the object. |
preAlg(T el, int index)
public abstract void preAlg(T el, int index)
Called before processing of an object.
Parameters:
Parameter | Type | Description |
---|---|---|
el | T | Processed object. |
index | int | Index of the object. |