listFW
Interface IList

All Known Subinterfaces:
IMTList, INEList

public interface IList

Serves as a host for an algorithm on a list to visit its internal structure. Has a "hook" method to call on the appropriate method of the visitor, making the immutable list structure a framework.

Since:
Copyright 2002 - DXN, SBW All rights reserved
Author:
Dung X. Nguyen, Stephen B. Wong

Method Summary
 Object execute(IListAlgo algo, Object inp)
          A visitor pattern "hook" method that executes an IListAlgo.
 

Method Detail

execute

Object execute(IListAlgo algo,
               Object inp)
A visitor pattern "hook" method that executes an IListAlgo.

Parameters:
algo - the visitor, the algorithm to be executed.
inp - a generic input parameter to be used by the algorithm algo.
Returns:
Object output from executing the algorithm algo.