Class pmr.euclid.HashedVector
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class pmr.euclid.HashedVector

java.lang.Object
   |
   +----java.util.Vector
           |
           +----pmr.euclid.HashedVector

public class HashedVector
extends Vector
A Vector whose elements are hashed via an internal Hashtable (StringSet)
Author:
(C) P.Murray-Rust, 1996

Constructor Index

 o HashedVector(int)
HashedVector will have case-sensitive keying unless ignoreCase is StringSet.IGNORE_CASE

Method Index

 o addElement(String, Object)
add Object using key (default case-sensitive).
 o containsObjectWithKey(String)
has key been used to store an object?
 o getObject(String)
return object with key key, else null
 o getStringSet()
return set of all keys (often the names of objects)
 o indexOf(String)
serial number of object with key, else -1

Constructors

 o HashedVector
  public HashedVector(int ignoreCase)
HashedVector will have case-sensitive keying unless ignoreCase is StringSet.IGNORE_CASE

Methods

 o addElement
  public boolean addElement(String key,
                            Object object)
add Object using key (default case-sensitive). Returns false if key already used.
 o getStringSet
  public StringSet getStringSet()
return set of all keys (often the names of objects)
 o containsObjectWithKey
  public boolean containsObjectWithKey(String key)
has key been used to store an object?
 o indexOf
  public int indexOf(String key)
serial number of object with key, else -1
 o getObject
  public Object getObject(String key)
return object with key key, else null

All Packages  Class Hierarchy  This Package  Previous  Next  Index