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 abstract class Map
extends Dictionary
implements Container
Map is the abstract class that in implemented by all JGL maps.

This is an abstract class and not an interface because it extends the JDK Dictionary class.

See Also:
HashMap, OrderedMap, Dictionary

Constructor Index

 o Map()

Method Index

 o add(Object)
Add an object to myself.
 o clear()
Remove all of my objects.
 o clone()
Return a shallow copy of myself.
 o count(Object)
Return the number of key/value pairs that match a particular key.
 o countValues(Object)
Return the number of values that match a given object.
 o elements()
Return an Enumeration of the components in this container
 o equals(Object)
Return true if I'm equal to a specified object.
 o finish()
Return an iterator positioned immediately after my last item.
 o isEmpty()
Return true if I contain no objects.
 o keys(Object)
Return an Enumeration of all my keys that are associated with a particular value.
 o maxSize()
Return the maximum number of objects that I can contain.
 o remove(Enumeration)
Remove the element at a particular position.
 o remove(Enumeration, Enumeration)
Remove the elements in the specified range.
 o size()
Return the number of objects that I contain.
 o start()
Return an iterator positioned at my first item.
 o toString()
Return a string that describes me.
 o values(Object)
Return an Enumeration of all my values that are associated with a particular key.

Constructors

 o Map
 public Map()

Methods

 o 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.
 o countValues
 public abstract int countValues(Object value)
Return the number of values that match a given object.

Parameters:
value - The value to match against.
 o 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.
 o 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.
 o clone
 public Object clone()
Return a shallow copy of myself.

Overrides:
clone in class Object
 o toString
 public String toString()
Return a string that describes me.

Overrides:
toString in class Object
 o equals
 public 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
 o size
 public int size()
Return the number of objects that I contain.

Overrides:
size in class Dictionary
 o maxSize
 public int maxSize()
Return the maximum number of objects that I can contain.

 o isEmpty
 public boolean isEmpty()
Return true if I contain no objects.

Overrides:
isEmpty in class Dictionary
 o clear
 public void clear()
Remove all of my objects.

 o elements
 public Enumeration elements()
Return an Enumeration of the components in this container

Overrides:
elements in class Dictionary
 o start
 public ForwardIterator start()
Return an iterator positioned at my first item.

 o finish
 public ForwardIterator finish()
Return an iterator positioned immediately after my last item.

 o add
 public 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