JBoss Marshalling 1.3.0.CR9

org.jboss.marshalling.util
Class IntKeyMap<V>

java.lang.Object
  extended by org.jboss.marshalling.util.IntKeyMap<V>
All Implemented Interfaces:
Serializable, Cloneable, Iterable<IntKeyMap.Entry<V>>

public final class IntKeyMap<V>
extends Object
implements Cloneable, Serializable, Iterable<IntKeyMap.Entry<V>>

An integer-keyed map, optimized for fast copying. Based on FastCopyHashMap by Jason T. Greene.

Author:
Jason T. Greene, David M. Lloyd
See Also:
Serialized Form

Nested Class Summary
static class IntKeyMap.Entry<V>
          A map entry.
 
Constructor Summary
IntKeyMap()
           
IntKeyMap(int initialCapacity)
           
IntKeyMap(int initialCapacity, float loadFactor)
           
IntKeyMap(IntKeyMap<? extends V> map)
           
 
Method Summary
 void clear()
           
 IntKeyMap<V> clone()
           
 boolean containsKey(int key)
           
 boolean containsValue(Object value)
           
 V get(int key)
           
 boolean isEmpty()
           
 Iterator<IntKeyMap.Entry<V>> iterator()
          Iterate over the entries.
 void printDebugStats()
           
 V put(int key, V value)
           
 V remove(int key)
           
 int size()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntKeyMap

public IntKeyMap(int initialCapacity,
                 float loadFactor)

IntKeyMap

public IntKeyMap(IntKeyMap<? extends V> map)

IntKeyMap

public IntKeyMap(int initialCapacity)

IntKeyMap

public IntKeyMap()
Method Detail

size

public int size()

isEmpty

public boolean isEmpty()

get

public V get(int key)

containsKey

public boolean containsKey(int key)

containsValue

public boolean containsValue(Object value)

put

public V put(int key,
             V value)

remove

public V remove(int key)

clear

public void clear()

clone

public IntKeyMap<V> clone()
Overrides:
clone in class Object

printDebugStats

public void printDebugStats()

iterator

public Iterator<IntKeyMap.Entry<V>> iterator()
Iterate over the entries. Read-only operation.

Specified by:
iterator in interface Iterable<IntKeyMap.Entry<V>>
Returns:
the entry iterator

JBoss Marshalling 1.3.0.CR9

Copyright © 2011 JBoss, a division of Red Hat, Inc.