|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.util.Dictionary
|
+--java.util.Hashtable
|
+--com.ds.fw.types.FwHashVector
| Field Summary | |
java.util.Vector |
vec
|
| Constructor Summary | |
FwHashVector()
Constructs a new, empty FwHashVector with a default capacity and load factor, which is 0.75. |
|
FwHashVector(int initialCapacity)
Constructs a new, empty FwHashVector with the specified initial capacity and default load factor, which is 0.75. |
|
FwHashVector(int initialCapacity,
float loadFactor)
Constructs a new, empty FwHashVector with the specified initial capacity and the specified load factor. |
|
| Method Summary | |
void |
add(int index,
java.lang.Object element)
Inserts the specified element at the specified position in this FwHashVector. |
void |
add(int index,
java.lang.Object element,
java.lang.Object key)
Inserts the specified element at the specified position in this FwHashVector. |
boolean |
add(java.lang.Object element)
Appends the specified element to the end of this FwHashVector. |
boolean |
addAll(java.util.Collection c)
Appends all of the elements in the specified Collection to the end of this FwHashVector, in the order that they are returned by the specified Collection's Iterator. |
boolean |
addAll(int index,
java.util.Collection c)
Inserts all of the elements in in the specified Collection into this FwHashVector at the specified position. |
void |
addElement(java.lang.Object element)
Adds the specified component to the end of this FwHashVector, increasing its size by one. |
int |
capacity()
Returns the current capacity of this FwHashVector. |
void |
clear()
Clears this FwHashVector so that it contains no keys. |
java.lang.Object |
clone()
Creates a shallow copy of this FwHashVector. |
boolean |
contains(java.lang.Object value)
Tests if some key maps into the specified value in this FwHashVector. |
boolean |
containsAll(java.util.Collection c)
Returns true if this FwHashVector contains all of the elements in the specified Collection. |
boolean |
containsKey(java.lang.Object key)
Tests if the specified object is a key in this FwHashVector. |
boolean |
containsValue(java.lang.Object value)
Returns true if this FwHashVector maps one or more keys to this value. |
void |
copyInto(java.lang.Object[] anArray)
Copies the components of this FwHashVector into the specified array. |
java.lang.Object |
elementAt(int index)
Returns the component at the specified index. |
java.util.Enumeration |
elements()
Returns an enumeration of the values in this FwHashVector. |
void |
ensureCapacity(int minCapacity)
Increases the capacity of this FwHashVector, if necessary, to ensure that it can hold at least the number of components specified by the minimum capacity argument. |
java.util.Set |
entrySet()
Returns a Set view of the entries contained in this FwHashVector. |
boolean |
equals(java.lang.Object o)
Compares the specified Object with this Map for equality, as per the definition in the Map interface. |
java.lang.Object |
firstElement()
Returns the first component (the item at index 0) of this FwHashVector. |
java.lang.Object |
get(int index)
Returns the element at the specified position in this FwHashVector. |
java.lang.Object |
get(java.lang.Object key)
Returns the value to which the specified key is mapped in this FwHashVector. |
float |
getFloat(java.lang.Object key)
Returns the value to which the specified key is mapped in this FwHashVector. |
long |
getLong(java.lang.Object key)
Returns the value to which the specified key is mapped in this FwHashVector. |
java.util.Vector |
getVec()
|
int |
hashCode()
Returns the hash code value for this Map as per the definition in the Map interface. |
int |
indexFromKey(java.lang.Object key)
Returns the index of the last key in this FwHashVector. |
int |
indexOf(java.lang.Object elem)
Searches for the first occurence of the given argument, testing for equality using the equals method. |
int |
indexOf(java.lang.Object elem,
int index)
Searches for the first occurence of the given argument, beginning the search at index, and testing for equality using the equals method. |
void |
insertElementAt(java.lang.Object obj,
int index)
Inserts the specified object as a component in this FwHashVector at the specified index. |
boolean |
isEmpty()
Tests if this FwHashVector maps no keys to values. |
java.lang.Object |
keyFromIndex(int index)
Returns the index of the last key in this FwHashVector. |
java.util.Enumeration |
keys()
Returns an enumeration of the keys in this FwHashVector. |
java.util.Set |
keySet()
Returns a Set view of the keys contained in this FwHashVector. |
java.lang.Object |
lastElement()
Returns the last component of the FwHashVector. |
int |
lastIndexOf(java.lang.Object elem)
Returns the index of the last occurrence of the specified object in this FwHashVector. |
int |
lastIndexOf(java.lang.Object elem,
int index)
Searches backwards for the specified object, starting from the specified index, and returns an index to it. |
java.lang.Object |
lastKeyOf(java.lang.Object value)
Returns the index of the last occurrence of the specified object in this FwHashVector. |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Maps the specified key to the specified value in this FwHashVector. |
void |
putAll(java.util.Map t)
Copies all of the mappings from the specified Map to this FwHashVector These mappings will replace any mappings that this FwHashVector had for any of the keys currently in the specified Map. |
protected void |
rehash()
Increases the capacity of and internally reorganizes this FwHashVector, in order to accommodate and access its entries more efficiently. |
java.lang.Object |
remove(int index)
Removes the element at the specified position in this FwHashVector. |
java.lang.Object |
remove(java.lang.Object key)
Removes the key (and its corresponding value) from this FwHashVector. |
void |
removeAllElements()
Removes all components from this FwHashVector and sets its size to zero. |
boolean |
removeElement(java.lang.Object value)
Removes the first (lowest-indexed) occurrence of the argument from this FwHashVector. |
void |
removeElementAt(int index)
Deletes the component at the specified index. |
java.lang.Object |
set(int index,
java.lang.Object element)
Replaces the element at the specified position in this FwHashVector with the specified element. |
java.lang.Object |
set(int index,
java.lang.Object element,
java.lang.Object key1)
Replaces the element at the specified position in this FwHashVector with the specified element. |
void |
setElementAt(java.lang.Object element,
int index)
Sets the component at the specified index of this FwHashVector to be the specified object. |
int |
size()
Returns the number of keys in this FwHashVector. |
java.lang.Object[] |
toArray()
Returns an array containing all of the elements in this FwHashVector in the correct order. |
java.lang.Object[] |
toArray(java.lang.Object[] a)
Returns an array containing all of the elements in this FwHashVector in the correct order. |
java.lang.String |
toString()
Returns a string representation of this FwHashVector object in the form of a set of entries, enclosed in braces and separated by the ASCII characters ", " (comma and space). |
void |
trimToSize()
Trims the capacity of this FwHashVector to be the FwHashVector's current size. |
| Methods inherited from class java.util.Hashtable |
values |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public java.util.Vector vec
| Constructor Detail |
public FwHashVector()
public FwHashVector(int initialCapacity)
public FwHashVector(int initialCapacity,
float loadFactor)
| Method Detail |
public java.util.Vector getVec()
public void clear()
clear in interface java.util.Mapclear in class java.util.Hashtablepublic java.lang.Object clone()
clone in class java.util.Hashtablepublic boolean contains(java.lang.Object value)
contains in class java.util.Hashtablepublic boolean containsKey(java.lang.Object key)
containsKey in interface java.util.MapcontainsKey in class java.util.Hashtablepublic boolean containsValue(java.lang.Object value)
containsValue in interface java.util.MapcontainsValue in class java.util.Hashtablepublic java.util.Enumeration elements()
elements in class java.util.Hashtablepublic java.util.Set entrySet()
entrySet in interface java.util.MapentrySet in class java.util.Hashtablepublic boolean equals(java.lang.Object o)
equals in interface java.util.Mapequals in class java.util.Hashtablepublic java.lang.Object get(java.lang.Object key)
get in interface java.util.Mapget in class java.util.Hashtablepublic long getLong(java.lang.Object key)
public float getFloat(java.lang.Object key)
public int hashCode()
hashCode in interface java.util.MaphashCode in class java.util.Hashtablepublic boolean isEmpty()
isEmpty in interface java.util.MapisEmpty in class java.util.Hashtablepublic java.util.Enumeration keys()
keys in class java.util.Hashtablepublic java.util.Set keySet()
keySet in interface java.util.MapkeySet in class java.util.Hashtable
public java.lang.Object put(java.lang.Object key,
java.lang.Object value)
put in interface java.util.Mapput in class java.util.Hashtablepublic void putAll(java.util.Map t)
putAll in interface java.util.MapputAll in class java.util.Hashtableprotected void rehash()
rehash in class java.util.Hashtablepublic java.lang.Object remove(java.lang.Object key)
remove in interface java.util.Mapremove in class java.util.Hashtablepublic int size()
size in interface java.util.Mapsize in class java.util.Hashtablepublic java.lang.String toString()
toString in class java.util.Hashtablepublic int indexFromKey(java.lang.Object key)
public java.lang.Object keyFromIndex(int index)
public java.lang.Object lastKeyOf(java.lang.Object value)
public void add(int index,
java.lang.Object element,
java.lang.Object key)
public void add(int index,
java.lang.Object element)
public boolean add(java.lang.Object element)
public boolean addAll(java.util.Collection c)
public boolean addAll(int index,
java.util.Collection c)
public void addElement(java.lang.Object element)
public int capacity()
public boolean containsAll(java.util.Collection c)
public void copyInto(java.lang.Object[] anArray)
public java.lang.Object elementAt(int index)
public void ensureCapacity(int minCapacity)
public java.lang.Object firstElement()
public java.lang.Object get(int index)
public int indexOf(java.lang.Object elem)
public int indexOf(java.lang.Object elem,
int index)
public void insertElementAt(java.lang.Object obj,
int index)
public java.lang.Object lastElement()
public int lastIndexOf(java.lang.Object elem)
public int lastIndexOf(java.lang.Object elem,
int index)
public java.lang.Object remove(int index)
public void removeAllElements()
public boolean removeElement(java.lang.Object value)
public void removeElementAt(int index)
public java.lang.Object set(int index,
java.lang.Object element,
java.lang.Object key1)
public java.lang.Object set(int index,
java.lang.Object element)
public void setElementAt(java.lang.Object element,
int index)
public java.lang.Object[] toArray()
public java.lang.Object[] toArray(java.lang.Object[] a)
public void trimToSize()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||