com.ibm.textlayout.attributes
Interface Map
- All Known Implementing Classes:
- AttributeMap
- public interface Map
A Map is a collection of key-value pairs (or entries), where each
key in the Map is unique. This interface is a subset of the
JDK 1.2 Map interface. It is used by JDK 1.1-compatible code.
Field Summary |
static java.lang.String |
COPYRIGHT
|
Method Summary |
boolean |
containsKey(java.lang.Object key)
Return true if this Map contains the given key. |
java.lang.Object |
get(java.lang.Object key)
Return the value of the given key. |
boolean |
isEmpty()
Return true if this Map has no entries. |
int |
size()
Return the number of entries in this Map. |
COPYRIGHT
public static final java.lang.String COPYRIGHT
size
public int size()
- Return the number of entries in this Map.
- Returns:
- the number of entries in this Map
isEmpty
public boolean isEmpty()
- Return true if this Map has no entries.
- Returns:
- true if this Map has no entries
get
public java.lang.Object get(java.lang.Object key)
- Return the value of the given key.
- Returns:
- the value of the given key. If the key does not have
a value in this Map, null is returned.
containsKey
public boolean containsKey(java.lang.Object key)
- Return true if this Map contains the given key.
- Returns:
- true if this Map contains the given key
Copyright (c) 2001 IBM Corporation and others.