KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > j2me > util > Map


1 /*
2  * Javolution - Java(TM) Solution for Real-Time and Embedded Systems
3  * Copyright (C) 2005 - Javolution (http://javolution.org/)
4  * All rights reserved.
5  *
6  * Permission to use, copy, modify, and distribute this software is
7  * freely granted, provided that this notice is preserved.
8  */

9 package j2me.util;
10
11 public interface Map {
12     int size();
13
14     boolean isEmpty();
15
16     boolean containsKey(Object JavaDoc key);
17
18     boolean containsValue(Object JavaDoc value);
19
20     Object JavaDoc get(Object JavaDoc key);
21
22     Object JavaDoc put(Object JavaDoc key, Object JavaDoc value);
23
24     Object JavaDoc remove(Object JavaDoc key);
25
26     void putAll(Map t);
27
28     void clear();
29
30     Set keySet();
31
32     Collection values();
33
34     Set entrySet();
35
36     interface Entry {
37         Object JavaDoc getKey();
38
39         Object JavaDoc getValue();
40
41         Object JavaDoc setValue(Object JavaDoc value);
42
43         boolean equals(Object JavaDoc o);
44
45         int hashCode();
46     }
47
48     boolean equals(Object JavaDoc o);
49
50     int hashCode();
51 }
Popular Tags