All Packages Class Hierarchy This Package Previous Next Index
Class COM.objectspace.jgl.Map
java.lang.Object
|
+----java.util.Dictionary
|
+----COM.objectspace.jgl.Map
- public class Map
- extends Dictionary
- implements Container
Note: Map is deprecated.
Map is the abstract class that in implemented by all JGL maps.
This abstract class was deprecated because it wasn't deemed to give
enough value for the added complexity. No functionality is lost from the
concrete classes as Map is effectively just an interface.
- See Also:
- HashMap, OrderedMap
-
Map()
-
-
add(Object)
- Add an object to myself.
-
clear()
- Remove all of my objects.
-
clone()
- Return a shallow copy of myself.
-
count(Object)
- Return the number of key/value pairs that match a particular key.
-
countValues(Object)
- Return the number of values that match a given object.
-
elements()
- Return an Enumeration of the components in this container
-
equals(Object)
- Return true if I'm equal to a specified object.
-
finish()
- Return an iterator positioned immediately after my last item.
-
isEmpty()
- Return true if I contain no objects.
-
keys(Object)
- Return an Enumeration of all my keys that are associated with a particular value.
-
maxSize()
- Return the maximum number of objects that I can contain.
-
remove(Enumeration)
- Remove the element at a particular position.
-
remove(Enumeration, Enumeration)
- Remove the elements in the specified range.
-
size()
- Return the number of objects that I contain.
-
start()
- Return an iterator positioned at my first item.
-
toString()
- Return a string that describes me.
-
values(Object)
- Return an Enumeration of all my values that are associated with a particular key.
Map
public Map()
count
public abstract int count(Object key)
- Return the number of key/value pairs that match a particular key.
- Parameters:
- key - The key to match against.
countValues
public abstract int countValues(Object value)
- Return the number of values that match a given object.
- Parameters:
- value - The value to match against.
keys
public abstract Enumeration keys(Object value)
- Return an Enumeration of all my keys that are associated with a particular value.
- Parameters:
- value - The value to match.
values
public abstract Enumeration values(Object key)
- Return an Enumeration of all my values that are associated with a particular key.
- Parameters:
- key - The key to match.
clone
public abstract Object clone()
- Return a shallow copy of myself.
- Overrides:
- clone in class Object
toString
public abstract String toString()
- Return a string that describes me.
- Overrides:
- toString in class Object
equals
public abstract boolean equals(Object object)
- Return true if I'm equal to a specified object.
- Parameters:
- object - The object to compare myself against.
- Returns:
- true if I'm equal to the specified object.
- Overrides:
- equals in class Object
size
public abstract int size()
- Return the number of objects that I contain.
- Overrides:
- size in class Dictionary
maxSize
public abstract int maxSize()
- Return the maximum number of objects that I can contain.
isEmpty
public abstract boolean isEmpty()
- Return true if I contain no objects.
- Overrides:
- isEmpty in class Dictionary
clear
public abstract void clear()
- Remove all of my objects.
elements
public abstract Enumeration elements()
- Return an Enumeration of the components in this container
- Overrides:
- elements in class Dictionary
start
public abstract ForwardIterator start()
- Return an iterator positioned at my first item.
finish
public abstract ForwardIterator finish()
- Return an iterator positioned immediately after my last item.
add
public abstract Object add(Object object)
- Add an object to myself. If appropriate, return the object that it replaced, otherwise
return null.
All Packages Class Hierarchy This Package Previous Next Index