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

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 abstract Object clone()
Return a shallow copy of myself.

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

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

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

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

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

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

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

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

 o 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