KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ozoneDB > DxLib > DxMap


1 // You can redistribute this software and/or modify it under the terms of
2
// the Ozone Library License version 1 published by ozone-db.org.
3
//
4
// The original code and portions created by SMB are
5
// Copyright (C) 1997-@year@ by SMB GmbH. All rights reserved.
6
//
7
// $Id: DxMap.java,v 1.5 2000/10/28 16:55:14 daniela Exp $
8

9 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.5 $Date: 2000/10/28 16:55:14 $
18  */

19 public interface DxMap extends DxCollection {
20     
21     
22     public boolean addForKey( Object JavaDoc obj, Object JavaDoc key );
23     
24     
25     public Object JavaDoc elementForKey( Object JavaDoc key );
26     
27     
28     /**
29      * Returns the key for the given object, which has to be the same
30      * object as stored in the map.
31      */

32     public Object JavaDoc keyForElement( Object JavaDoc obj );
33     
34     
35     public Object JavaDoc removeForKey( Object JavaDoc key );
36     
37     
38     public boolean removeAllKeys( DxCollection coll );
39     
40     
41     /**
42      * This method is not declared abstract because it does not need to
43      * be implemented in any case.
44      */

45     public Object JavaDoc buildKey( Object JavaDoc obj );
46     
47     
48     public boolean containsKey( Object JavaDoc key );
49     
50     
51     public DxSet keySet();
52     
53     
54     public DxSet elementSet();
55 }
56
Popular Tags