01: // You can redistribute this software and/or modify it under the terms of
02: // the Ozone Library License version 1 published by ozone-db.org.
03: //
04: // The original code and portions created by SMB are
05: // Copyright (C) 1997-@year@ by SMB GmbH. All rights reserved.
06: //
07: // $Id: DxMap.java,v 1.1 2001/12/18 10:31:30 per_nyfelt Exp $
08:
09: package org.ozoneDB.DxLib;
10:
11: import java.io.*;
12:
13: /**
14: *
15: *
16: * @author <a href="http://www.softwarebuero.de/">SMB</a>
17: * @version $Revision: 1.1 $Date: 2001/12/18 10:31:30 $
18: */
19: public interface DxMap extends DxCollection {
20:
21: public boolean addForKey(Object obj, Object key);
22:
23: public Object elementForKey(Object key);
24:
25: /**
26: * Returns the key for the given object, which has to be the same
27: * object as stored in the map.
28: */
29: public Object keyForElement(Object obj);
30:
31: public Object removeForKey(Object key);
32:
33: public boolean removeAllKeys(DxCollection coll);
34:
35: /**
36: * This method is not declared abstract because it does not need to
37: * be implemented in any case.
38: */
39: public Object buildKey(Object obj);
40:
41: public boolean containsKey(Object key);
42:
43: public DxSet keySet();
44:
45: public DxSet elementSet();
46: }
|