package lrs.visitor; import lrs.*; /** * @author DXN */ public class SelectionSortLRS implements IAlgo { public static final SelectionSortLRS Singleton = new SelectionSortLRS(); private SelectionSortLRS() { } public Object emptyCase(LRStruct host, Object... nu) { return host; } public Object nonEmptyCase(LRStruct host, Object... nu) { host.insertFront(host.execute(RemMinLRS.Singleton)); return host.getRest().execute(this); } }