Class schemeFW.EmptyList
- public class EmptyList
- extends Object
- implements schemeFW.IEmptyList
Represents the empty list.
Implemented as a singleton, using the singleton pattern.
- Author:
- Dung X. Nguyen, Stephen B. Wong
- Version:
- 1.1

Singleton

EmptyList
()

execute
(IListAlgo, Object)
- Calls the
emptyCase() method of the supplied IListAlgo

Singleton
public static final EmptyList Singleton = new EmptyList ()

EmptyList
private EmptyList()

execute
public Object execute(IListAlgo algo, Object inp)
- Calls the
emptyCase() method of the supplied IListAlgo
with the supplied input parameter.
- Parameters:
- algo - The visitor algorithm to be executed.
- inp - input to be handed to the algo's
emptyCase(). - Returns:
Object output of algo's emptyCase().