KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > core > databinding > observable > map > IObservableMap


1 /*******************************************************************************
2  * Copyright (c) 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  * Brad Reynolds - bug 164653
11  ******************************************************************************/

12
13 package org.eclipse.core.databinding.observable.map;
14
15 import java.util.Collection JavaDoc;
16 import java.util.Map JavaDoc;
17 import java.util.Set JavaDoc;
18
19 import org.eclipse.core.databinding.observable.IObservable;
20
21 /**
22  * Observable Map.
23  *
24  * <p>
25  * This interface is not intended to be implemented by clients. Clients should
26  * instead subclass one of the classes that implement this interface. Note that
27  * direct implementers of this interface outside of the framework will be broken
28  * in future releases when methods are added to this interface.
29  * </p>
30  *
31  * @since 1.1
32  */

33 public interface IObservableMap extends Map JavaDoc, IObservable {
34     
35     /**
36      * @param listener
37      */

38     public void addMapChangeListener(IMapChangeListener listener);
39
40     /**
41      * @param listener
42      */

43     public void removeMapChangeListener(IMapChangeListener listener);
44     
45     /**
46      * @TrackedGetter
47      */

48     public int size();
49
50     /**
51      * @TrackedGetter
52      */

53     public boolean isEmpty();
54
55     /**
56      * @TrackedGetter
57      */

58     public boolean containsKey(Object JavaDoc key);
59
60     /**
61      * @TrackedGetter
62      */

63     public boolean containsValue(Object JavaDoc value);
64
65     /**
66      * @TrackedGetter
67      */

68     public Object JavaDoc get(Object JavaDoc key);
69
70     /**
71      *
72      */

73     public Object JavaDoc put(Object JavaDoc key, Object JavaDoc value);
74
75     /**
76      *
77      */

78     public Object JavaDoc remove(Object JavaDoc key);
79
80     /**
81      * @TrackedGetter
82      */

83     public Set JavaDoc keySet();
84
85     /**
86      * @TrackedGetter
87      */

88     public Collection JavaDoc values();
89
90     /**
91      * @TrackedGetter
92      */

93     public Set JavaDoc entrySet();
94
95     /**
96      * @TrackedGetter
97      */

98     public boolean equals(Object JavaDoc o);
99
100     /**
101      * @TrackedGetter
102      */

103     public int hashCode();
104 }
105
Popular Tags