KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mmbase > bridge > util > AbstractSequentialBridgeList


1 /*
2
3 This software is OSI Certified Open Source Software.
4 OSI Certified is a certification mark of the Open Source Initiative.
5
6 The license (Mozilla version 1.0) can be read at the MMBase site.
7 See http://www.MMBase.org/license
8
9 */

10
11 package org.mmbase.bridge.util;
12
13 import org.mmbase.bridge.*;
14 import java.util.*;
15
16 /**
17  * As AbstractSequentialList, but implements some extra methods required by BridgeList
18  *
19  *
20  * @author Michiel Meeuwissen
21  * @version $Id: AbstractSequentialBridgeList.java,v 1.1 2003/12/17 08:49:20 michiel Exp $
22  * @since MMBase-1.7
23  */

24
25 abstract public class AbstractSequentialBridgeList extends AbstractSequentialList implements BridgeList {
26
27     private Map properties = new HashMap();
28
29     // javadoc inherited
30
public Object JavaDoc getProperty(Object JavaDoc key) {
31         return properties.get(key);
32     }
33
34     // javadoc inherited
35
public void setProperty(Object JavaDoc key, Object JavaDoc value) {
36         properties.put(key, value);
37     }
38
39     // javadoc inherited
40
public void sort() {
41         Collections.sort(this);
42     }
43
44     // javadoc inherited
45
public void sort(Comparator comparator) {
46         Collections.sort(this, comparator);
47     }
48
49
50 }
51
Popular Tags