java.lang.Object
provided.listFW.visitors.CopyAlgo
- All Implemented Interfaces:
IListAlgo
Returns a copy of the list
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CopyAlgo
public CopyAlgo()
-
-
Method Details
-
emptyCase
Returns an MTList always. -
nonEmptyCase
Returns a new NEList where first is the original first and rest is a copy of the original rest.- Specified by:
nonEmptyCase
in interfaceIListAlgo
- Parameters:
nu
- Not usedhost
- theNEList
that is executing this algorithm- Returns:
- result from calling this method. The type of the result is problem-specific and may be null.
-