org.exist.util.hashtable
Class Long2ObjectHashMap

java.lang.Object
  extended by org.exist.util.hashtable.AbstractHashtable
      extended by org.exist.util.hashtable.Long2ObjectHashMap

public class Long2ObjectHashMap
extends AbstractHashtable

A hashtable which maps long keys to object values.

Author:
Stephan Körnig, Wolfgang Meier (wolfgang@exist-db.org)

Constructor Summary
Long2ObjectHashMap()
           
Long2ObjectHashMap(int iSize)
           
 
Method Summary
 void clear()
           
 Object get(long key)
           
 Iterator iterator()
           
 void put(long key, Object value)
          Puts a new key/value pair into the hashtable.
 Object remove(long key)
           
 Iterator valueIterator()
           
 
Methods inherited from class org.exist.util.hashtable.AbstractHashtable
getMaxRehash, isPrime, nextPrime, size
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Long2ObjectHashMap

public Long2ObjectHashMap()

Long2ObjectHashMap

public Long2ObjectHashMap(int iSize)
Method Detail

put

public void put(long key,
                Object value)
Puts a new key/value pair into the hashtable. If the key does already exist, just the value is updated.

Parameters:
key -
value -

get

public Object get(long key)

remove

public Object remove(long key)

clear

public void clear()

iterator

public Iterator iterator()
Specified by:
iterator in class AbstractHashtable

valueIterator

public Iterator valueIterator()
Specified by:
valueIterator in class AbstractHashtable


Copyright (C) Wolfgang Meier. All rights reserved.