LimeWire Collection Component API

org.limewire.collection
Class RandomOrderHashMap<K,V>

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<K,V>
          extended by org.limewire.collection.FixedSizeArrayHashMap<K,V>
              extended by org.limewire.collection.RandomOrderHashMap<K,V>
All Implemented Interfaces:
Serializable, Cloneable, Map<K,V>, RandomAccess, RandomAccessMap<K,V>

public class RandomOrderHashMap<K,V>
extends FixedSizeArrayHashMap<K,V>

A variant of FixedSizeArrayHashMap that allows iterations over its elements in random order.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
RandomOrderHashMap(int maxCapacity)
           
RandomOrderHashMap(int maxSize, int initialCapacity, float loadFactor)
           
RandomOrderHashMap(int maxCapacity, Map<? extends K,? extends V> m)
           
RandomOrderHashMap(Map<? extends K,? extends V> m)
           
 
Method Summary
protected  Iterator<Map.Entry<K,V>> newEntryIterator()
           
 
Methods inherited from class org.limewire.collection.FixedSizeArrayHashMap
clear, clone, entrySet, getEntryAt, getKeyAt, getValueAt, keySet, put, remove, values
 
Methods inherited from class java.util.HashMap
containsKey, containsValue, get, isEmpty, putAll, size
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
containsKey, containsValue, equals, get, hashCode, isEmpty, putAll, size
 

Constructor Detail

RandomOrderHashMap

public RandomOrderHashMap(Map<? extends K,? extends V> m)

RandomOrderHashMap

public RandomOrderHashMap(int maxCapacity,
                          Map<? extends K,? extends V> m)

RandomOrderHashMap

public RandomOrderHashMap(int maxSize,
                          int initialCapacity,
                          float loadFactor)

RandomOrderHashMap

public RandomOrderHashMap(int maxCapacity)
Method Detail

newEntryIterator

protected Iterator<Map.Entry<K,V>> newEntryIterator()
Overrides:
newEntryIterator in class FixedSizeArrayHashMap<K,V>

LimeWire Collection Component API

Copyright © 2008 Lime Wire LLC. All Rights Reserved.