public abstract class AbstractMap
extends java.util.Vector
implements java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
static int |
MAP_TYPE_NOT_FOUND
The type is not in this map.
|
Constructor and Description |
---|
AbstractMap()
Constructor for an empty map.
|
AbstractMap(java.util.Enumeration availableTypes)
Constructor that initializes the map from an Enumeration.
|
AbstractMap(java.lang.String type)
Constructor that initializes the map with one type.
|
AbstractMap(java.lang.String[] availableTypes)
Constructor that initializes the map from an array.
|
Modifier and Type | Method and Description |
---|---|
void |
addType(java.lang.String t)
Adds a type to this map.
|
java.lang.Object |
clone()
Copies this map.
|
int |
containsType(java.lang.String type)
Locates the index of a type in this map.
|
java.lang.String |
getTypeAt(int index)
Retrieves the type at a specified index in the map.
|
boolean |
isSuperset(AbstractMap map)
Indicates whether this map is a superset of another map.
|
void |
merge(AbstractMap map)
Merges maps.
|
boolean |
removeType(java.lang.String t)
Removes a type from the map.
|
java.util.Enumeration |
types()
Retrieves an Enumeration of the types in the map.
|
add, add, addAll, addAll, addElement, capacity, clear, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
public static final int MAP_TYPE_NOT_FOUND
public AbstractMap()
public AbstractMap(java.util.Enumeration availableTypes)
availableTypes
- An Enumeration of types for this cursor.public AbstractMap(java.lang.String[] availableTypes)
availableTypes
- An array of types for this cursor.public AbstractMap(java.lang.String type)
type
- The type to put in this map.public void addType(java.lang.String t)
t
- A constant that represents the type to add. Constants are
defined in concrete subclasses.public int containsType(java.lang.String type)
type
- A constant that represents the type to locate. Constants
are defined in concrete subclasses.public boolean isSuperset(AbstractMap map)
map
- The map to compare with this map.public void merge(AbstractMap map)
map
- The map to merge with this map.public boolean removeType(java.lang.String t)
t
- A constant that represents the type to remove. Constants are
defined in concrete subclasses.true
if successful, false
if not.public java.lang.String getTypeAt(int index)
index
- The zero-based index into the map.public java.util.Enumeration types()
public java.lang.Object clone()
clone
in class java.util.Vector