78
|
1 /*******************************************************************************
|
|
2 * Copyright (c) 2006, 2008 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 module org.eclipse.core.databinding.observable.map.IObservableMap;
|
|
14
|
|
15 import java.lang.all;
|
|
16
|
|
17 import java.util.Collection;
|
|
18 import java.util.Map;
|
|
19 import java.util.Set;
|
|
20
|
|
21 import org.eclipse.core.databinding.observable.IObservable;
|
|
22
|
|
23 /**
|
|
24 * Observable Map.
|
|
25 *
|
|
26 * @noextend This interface is not intended to be extended by clients.
|
|
27 * @noimplement This interface is not intended to be implemented by clients.
|
|
28 * Clients should instead subclass one of the classes that
|
|
29 * implement this interface. Note that direct implementers of this
|
|
30 * interface outside of the framework will be broken in future
|
|
31 * releases when methods are added to this interface.
|
|
32 *
|
|
33 * @see AbstractObservableMap
|
|
34 * @see ObservableMap
|
|
35 *
|
|
36 * @since 1.1
|
|
37 */
|
|
38 public interface IObservableMap : Map, IObservable {
|
|
39
|
|
40 /**
|
|
41 * @param listener
|
|
42 */
|
|
43 public void addMapChangeListener(IMapChangeListener listener);
|
|
44
|
|
45 /**
|
|
46 * @param listener
|
|
47 */
|
|
48 public void removeMapChangeListener(IMapChangeListener listener);
|
|
49
|
|
50 /**
|
|
51 * @TrackedGetter
|
|
52 */
|
|
53 public int size();
|
|
54
|
|
55 /**
|
|
56 * @TrackedGetter
|
|
57 */
|
|
58 public bool isEmpty();
|
|
59
|
|
60 /**
|
|
61 * @TrackedGetter
|
|
62 */
|
|
63 public bool containsKey(Object key);
|
|
64
|
|
65 /**
|
|
66 * @TrackedGetter
|
|
67 */
|
|
68 public bool containsValue(Object value);
|
|
69
|
|
70 /**
|
|
71 * @TrackedGetter
|
|
72 */
|
|
73 public Object get(Object key);
|
|
74
|
|
75 /**
|
|
76 *
|
|
77 */
|
|
78 public Object put(Object key, Object value);
|
|
79
|
|
80 /**
|
|
81 *
|
|
82 */
|
|
83 public Object remove(Object key);
|
|
84
|
|
85 /**
|
|
86 * @TrackedGetter
|
|
87 */
|
|
88 public Set keySet();
|
|
89
|
|
90 /**
|
|
91 * @TrackedGetter
|
|
92 */
|
|
93 public Collection values();
|
|
94
|
|
95 /**
|
|
96 * @TrackedGetter
|
|
97 */
|
|
98 public Set entrySet();
|
|
99
|
|
100 /**
|
|
101 * @TrackedGetter
|
|
102 */
|
|
103 public bool opEquals(Object o);
|
|
104
|
|
105 /**
|
|
106 * @TrackedGetter
|
|
107 */
|
|
108 public int hashCode();
|
|
109 }
|