01: /*
02: * (C) Copyright IBM Corp. 1998-2004. All Rights Reserved.
03: *
04: * The program is provided "as is" without any warranty express or
05: * implied, including the warranty of non-infringement and the implied
06: * warranties of merchantibility and fitness for a particular purpose.
07: * IBM will not be liable for any damages suffered by you as a result
08: * of using the Program. In no event will IBM be liable for any
09: * special, indirect or consequential damages or lost profits even if
10: * IBM has been advised of the possibility of their occurrence. IBM
11: * will not be liable for any third party claims against you.
12: */
13: // Requires Java2
14: package com.ibm.richtext.textlayout.attributes;
15:
16: /**
17: * A Map is a collection of key-value pairs (or entries), where each
18: * key in the Map is unique. This interface is a subset of the
19: * JDK 1.2 Map interface. It is used by JDK 1.1-compatible code.
20: */
21: public interface Map {
22:
23: static final String COPYRIGHT = "(C) Copyright IBM Corp. 1998-1999 - All Rights Reserved";
24:
25: /**
26: * Return the number of entries in this Map.
27: * @return the number of entries in this Map
28: */
29: public int size();
30:
31: /**
32: * Return true if this Map has no entries.
33: * @return true if this Map has no entries
34: */
35: public boolean isEmpty();
36:
37: /**
38: * Return the value of the given key.
39: * @return the value of the given key. If the key does not have
40: * a value in this Map, null is returned.
41: */
42: public Object get(Object key);
43:
44: /**
45: * Return true if this Map contains the given key.
46: * @return true if this Map contains the given key
47: */
48: public boolean containsKey(Object key);
49: }
|