org.gudy.azureus2.core3.util
Class ByteArrayHashMap<T>

java.lang.Object
  extended by org.gudy.azureus2.core3.util.ByteArrayHashMap<T>
Direct Known Subclasses:
RelatedContentManager.ByteArrayHashMapEx

public class ByteArrayHashMap<T>
extends Object


Nested Class Summary
protected static class ByteArrayHashMap.Entry<S>
           
 
Field Summary
protected  int size
           
protected  ByteArrayHashMap.Entry<T>[] table
           
 
Constructor Summary
ByteArrayHashMap()
           
ByteArrayHashMap(int initialCapacity)
           
ByteArrayHashMap(int initialCapacity, float loadFactor)
           
 
Method Summary
 void clear()
           
 boolean containsKey(byte[] key)
           
 ByteArrayHashMap<T> duplicate()
          Bit inefficient at the moment
 T get(byte[] key)
           
 T get(byte[] key, int offset, int len)
           
 boolean isEmpty()
           
 List<byte[]> keys()
           
 T put(byte[] key, T value)
           
 T remove(byte[] key)
           
 int size()
           
 List<T> values()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

table

protected ByteArrayHashMap.Entry<T>[] table

size

protected int size
Constructor Detail

ByteArrayHashMap

public ByteArrayHashMap(int initialCapacity,
                        float loadFactor)

ByteArrayHashMap

public ByteArrayHashMap(int initialCapacity)

ByteArrayHashMap

public ByteArrayHashMap()
Method Detail

size

public int size()

isEmpty

public boolean isEmpty()

get

public T get(byte[] key,
             int offset,
             int len)

get

public T get(byte[] key)

containsKey

public boolean containsKey(byte[] key)

put

public T put(byte[] key,
             T value)

remove

public T remove(byte[] key)

clear

public void clear()

keys

public List<byte[]> keys()

values

public List<T> values()

duplicate

public ByteArrayHashMap<T> duplicate()
Bit inefficient at the moment

Returns: