| 
 | JGL - The Generic Collection Library for Java | 
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
  -  super class of:
    
-  HashMap, OrderedMap
		
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
   
  -   Map() Map()
-  
   
  -   add(Object) add(Object)
-   Add an object to myself.
  
-   clear() clear()
-   Remove all of my objects.
  
-   clone() clone()
-   Return a shallow copy of myself.
  
-   count(Object) count(Object)
-   Return the number of key/value pairs that match a particular key.
  
-   countValues(Object) countValues(Object)
-   Return the number of values that match a given object.
  
-   elements() elements()
-   Return an Enumeration of the components in this container
  
-   equals(Object) equals(Object)
-   Return true if I'm equal to a specified object.
  
-   finish() finish()
-   Return an iterator positioned immediately after my last item.
  
-   isEmpty() isEmpty()
-   Return true if I contain no objects.
  
-   keys(Object) keys(Object)
-   Return an Enumeration of all my keys that are associated with a particular value.
  
-   maxSize() maxSize()
-   Return the maximum number of objects that I can contain.
  
-   size() size()
-   Return the number of objects that I contain.
  
-   start() start()
-   Return an iterator positioned at my first item.
  
-   toString() toString()
-   Return a string that describes me.
  
-   values(Object) values(Object)
-   Return an Enumeration of all my values that are associated with a particular key.
   
 Map
Map
 public Map()
   
 count
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
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
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
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
clone
 public Object clone()
  -  Return a shallow copy of myself.
   
- 
    -  Overrides:
    
-  clone in class Object
  
 
 toString
toString
 public String toString()
  -  Return a string that describes me.
   
- 
    -  Overrides:
    
-  toString in class Object
  
 
 equals
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
  
 
 size
size
 public int size()
  -  Return the number of objects that I contain.
   
- 
    -  Overrides:
    
-  size in class Dictionary
  
 
 maxSize
maxSize
 public int maxSize()
  -  Return the maximum number of objects that I can contain.
 
 isEmpty
isEmpty
 public boolean isEmpty()
  -  Return true if I contain no objects.
   
- 
    -  Overrides:
    
-  isEmpty in class Dictionary
  
 
 clear
clear
 public void clear()
  -  Remove all of my objects.
 
 elements
elements
 public Enumeration elements()
  -  Return an Enumeration of the components in this container
   
- 
    -  Overrides:
    
-  elements in class Dictionary
  
 
 start
start
 public ForwardIterator start()
  -  Return an iterator positioned at my first item.
 
 finish
finish
 public ForwardIterator finish()
  -  Return an iterator positioned immediately after my last item.
 
 add
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