/** * Removes and returns the minimum element in the host list. Assumes host list contains Integer objects. * @exception NoSuchElementException if the host list is empty. * @author Dung X. Nguyen - Copyright 1999 - All rights reserved. */ public class RemMin implements IAlgo { public final static RemMin Singleton = new RemMin (); private RemMin() { } /** * @param host * @param input not used. * @return */ public Object nullCase(QFList host, Object input) { throw new java.util.NoSuchElementException ("RemMin.nullCase - host is empty."); } /** * @param host * @param input not used. * @return */ public Object nonNullCase(QFList host, Object input) { return host.getRest ().execute (RemMinHelper.Singleton, host); } }