org.gudy.azureus2.core3.util
Class ByteArrayHashMap<T>
java.lang.Object
org.gudy.azureus2.core3.util.ByteArrayHashMap<T>
- Direct Known Subclasses:
- RelatedContentManager.ByteArrayHashMapEx
public class ByteArrayHashMap<T>
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
table
protected ByteArrayHashMap.Entry<T>[] table
size
protected int size
ByteArrayHashMap
public ByteArrayHashMap(int initialCapacity,
float loadFactor)
ByteArrayHashMap
public ByteArrayHashMap(int initialCapacity)
ByteArrayHashMap
public ByteArrayHashMap()
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: