01: /*
02: * Javolution - Java(TM) Solution for Real-Time and Embedded Systems
03: * Copyright (C) 2005 - Javolution (http://javolution.org/)
04: * All rights reserved.
05: *
06: * Permission to use, copy, modify, and distribute this software is
07: * freely granted, provided that this notice is preserved.
08: */
09: package j2me.util;
10:
11: public interface Map {
12: int size();
13:
14: boolean isEmpty();
15:
16: boolean containsKey(Object key);
17:
18: boolean containsValue(Object value);
19:
20: Object get(Object key);
21:
22: Object put(Object key, Object value);
23:
24: Object remove(Object 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 getKey();
38:
39: Object getValue();
40:
41: Object setValue(Object value);
42:
43: boolean equals(Object o);
44:
45: int hashCode();
46: }
47:
48: boolean equals(Object o);
49:
50: int hashCode();
51: }
|