01: // Copyright (c) 2000 Per M.A. Bothner.
02: // This is free software; for terms and warranty disclaimer see ./COPYING.
03:
04: package gnu.mapping;
05:
06: /** An object that may have methods that provide the "action" needed
07: * by an ApplyMethodProc. */
08:
09: public interface ApplyMethodContainer {
10: public Object apply0(ApplyMethodProc proc);
11:
12: public Object apply1(ApplyMethodProc proc, Object arg1);
13:
14: public Object apply2(ApplyMethodProc proc, Object arg1, Object arg2);
15:
16: public Object apply3(ApplyMethodProc proc, Object arg1,
17: Object arg2, Object arg3);
18:
19: public Object apply4(ApplyMethodProc proc, Object arg1,
20: Object arg2, Object arg3, Object arg4);
21:
22: public Object applyN(ApplyMethodProc proc, Object[] args);
23: }
|