javax.media.pim
Class PlugInVector

java.lang.Object
  |
  +--javax.media.pim.PlugInVector

class PlugInVector
extends java.lang.Object


Constructor Summary
PlugInVector(int initialCapacity)
          Constructs an empty plugin vector with the specified initial capacity.
 
Method Summary
 void addElement(PlugInInfo pii)
          Add the new PlugInInfo instance into the sorted (by hashValue) vector of PlugInInfo objects.
 PlugInInfo lookup(int type, java.lang.String className, long hashValue)
          Search to see if a PlugInInfo object with the given type and classname is present in the vector of plugins.
 boolean removeElement(PlugInInfo pii)
          Removes the first occurrence of the given PlugInInfo instance from the vector of plugins.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlugInVector

public PlugInVector(int initialCapacity)
Constructs an empty plugin vector with the specified initial capacity.

Parameters:
initialCapacity - the initial capacity of the vector.
Method Detail

addElement

public final void addElement(PlugInInfo pii)
Add the new PlugInInfo instance into the sorted (by hashValue) vector of PlugInInfo objects.


removeElement

public final boolean removeElement(PlugInInfo pii)
Removes the first occurrence of the given PlugInInfo instance from the vector of plugins.

Returns:
true if the argument was a component of this vector; false otherwise.

lookup

public final PlugInInfo lookup(int type,
                               java.lang.String className,
                               long hashValue)
Search to see if a PlugInInfo object with the given type and classname is present in the vector of plugins.

Parameters:
type - the type of the plugin.
className - the class name of the plugin.
hashValue - the hash value for the class name.
Returns:
the first PlugIniInfo instance with the given type and classname if found, otherwise null.