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

MethodDescription
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:

ParameterTypeDescription
elTProcessed object.
indexintIndex of the object.

postAlg(T el, int index)

public abstract void postAlg(T el, int index)

Called after processing of an object.

Parameters:

ParameterTypeDescription
elTProcessed object.
indexintIndex of the object.

preAlg(T el, int index)

public abstract void preAlg(T el, int index)

Called before processing of an object.

Parameters:

ParameterTypeDescription
elTProcessed object.
indexintIndex of the object.