package list.dl.algo; import list.dl.DLList; /** * Returns the right end list. */ public class GetRightEnd implements IAlgoRight { final public static GetRightEnd Singleton = new GetRightEnd (); private GetRightEnd() { } /** * @param host * @param input * @return */ public Object rightEndCase(DLList host, Object input) { return host; } /** * @param host * @param input * @return */ public Object dataNodeCase(DLList host, Object input) { return host.getRightRest().executeRight (this, null); } }