# Long2ObjectHashMap
Keywords: org.exist.util.hashtable.Long2ObjectHashMap class

## org.exist.util.hashtable
Class Long2ObjectHashMap

    java.lang.Object
      org.exist.util.hashtable.AbstractHashtable
          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()`
`java.lang.Object` `get(long key)`
`java.util.Iterator` `iterator()`
`void` `put(long key, java.lang.Object value)` Puts a new key/value pair into the hashtable.
`java.lang.Object` `remove(long key)`
`java.util.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,
                    java.lang.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 java.lang.Object get(long key)

### remove

    public java.lang.Object remove(long key)

### clear

    public void clear()

### iterator

    public java.util.Iterator iterator()

  Specified by:
    `iterator` in class `AbstractHashtable`

### valueIterator

    public java.util.Iterator valueIterator()

  Specified by:
    `valueIterator` in class `AbstractHashtable`

Copyright (C) Wolfgang Meier. All rights reserved.