01: package com.jofti.util;
02:
03: /**
04:
05: * Utility implementation of an adaptor so that over-riders do not have to implement both methods.
06:
07: */
08:
09: public class ObjectProcedureAdapter implements ObjectProcedure {
10:
11: protected int counter = 0;
12:
13: public ObjectProcedureAdapter() {
14:
15: }
16:
17: public boolean apply(Object element) {
18:
19: return false;
20: }
21:
22: public boolean apply(Object key, Object element) {
23:
24: return false;
25: }
26:
27: }
|