|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.w3c.rdf.implementation.model.LongTable
A hashtable specialized for storing keys of type long. Supports duplicates.
| Constructor Summary | |
LongTable()
Constructs a new, empty hashtable with a default capacity and load factor. |
|
LongTable(boolean multivalues)
|
|
LongTable(int initialCapacity)
Constructs a new, empty hashtable with the specified initial capacity and default load factor. |
|
LongTable(int initialCapacity,
float loadFactor,
boolean multivalues)
Constructs a new, empty hashtable with the specified initial capacity and the specified load factor. |
|
| Method Summary | |
void |
clear()
Clears this hashtable so that it contains no keys. |
java.lang.Object |
clone()
Creates a shallow copy of this hashtable. |
boolean |
contains(long hash,
java.lang.Object value)
|
boolean |
contains(java.lang.Object value)
Tests if some key maps into the specified value in this hashtable. |
boolean |
containsKey(long hash)
Tests if the specified object is a key in this hashtable. |
java.util.Enumeration |
elements()
Returns an enumeration of the values in this hashtable. |
java.lang.Object |
get(long hash)
Returns the value to which the specified key is mapped in this hashtable. |
boolean |
isEmpty()
Tests if this hashtable maps no keys to values. |
org.w3c.rdf.implementation.model.LongTable.LongEnumeration |
keys()
Returns an enumeration of the keys in this hashtable. |
static void |
main(java.lang.String[] args)
|
java.util.Enumeration |
multiget(long key)
|
int |
multigetsize(long key)
|
java.lang.Object |
put(long hash,
java.lang.Object value)
Maps the specified key to the specified
value in this hashtable. |
protected void |
rehash()
Rehashes the contents of the hashtable into a hashtable with a larger capacity. |
java.lang.Object |
remove(long hash)
Removes the key (and its corresponding value) from this hashtable. |
java.lang.Object |
remove(long hash,
java.lang.Object value)
|
int |
size()
Returns the number of keys in this hashtable. |
java.lang.String |
toString()
Returns a rather long string representation of this hashtable. |
| Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
public LongTable(int initialCapacity,
float loadFactor,
boolean multivalues)
initialCapacity - the initial capacity of the hashtable.loadFactor - a number between 0.0 and 1.0.public LongTable(int initialCapacity)
initialCapacity - the initial capacity of the hashtable.public LongTable()
public LongTable(boolean multivalues)
| Method Detail |
public int size()
public boolean isEmpty()
true if this hashtable maps no keys to values;
false otherwise.public org.w3c.rdf.implementation.model.LongTable.LongEnumeration keys()
Enumeration,
java.util.LongTable#elements()public java.util.Enumeration elements()
Enumeration,
java.util.LongTable#keys()public java.util.Enumeration multiget(long key)
public int multigetsize(long key)
public boolean contains(java.lang.Object value)
containsKey
method.value - a value to search for.true if some key maps to the
value argument in this hashtable;
false otherwise.null.java.util.LongTable#containsKey(java.lang.Object)public boolean containsKey(long hash)
key - possible key.true if the specified object is a key in this
hashtable; false otherwise.java.util.LongTable#contains(java.lang.Object)
public boolean contains(long hash,
java.lang.Object value)
public java.lang.Object get(long hash)
key - a key in the hashtable.null if the key is not mapped to any value in
this hashtable.java.util.LongTable#put(java.lang.Object, java.lang.Object)protected void rehash()
public java.lang.Object put(long hash,
java.lang.Object value)
key to the specified
value in this hashtable. Neither the key nor the
value can be null.
The value can be retrieved by calling the get method
with a key that is equal to the original key.
key - the hashtable key.value - the value.null if it did not have one.null.Object.equals(java.lang.Object),
java.util.LongTable#get(java.lang.Object)public java.lang.Object remove(long hash)
key - the key that needs to be removed.null if the key did not have a mapping.
public java.lang.Object remove(long hash,
java.lang.Object value)
public void clear()
public java.lang.Object clone()
public java.lang.String toString()
public static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||