org.joni.util
Class BytesHash<V>
java.lang.Object
org.joni.util.BytesHash<V>
- All Implemented Interfaces:
- java.lang.Iterable<V>
public final class BytesHash<V>
- extends java.lang.Object
Field Summary |
protected int |
size
|
protected org.joni.util.Hash.OniHashEntry<V>[] |
table
|
Method Summary |
protected static int |
bucketIndex(int h,
int length)
|
protected void |
checkResize()
|
V |
delete(byte[] bytes)
|
V |
delete(byte[] bytes,
int p,
int end)
|
org.joni.util.Hash.OniHashIterator |
entryIterator()
|
V |
get(byte[] bytes)
|
V |
get(byte[] bytes,
int p,
int end)
|
static int |
hashCode(byte[] bytes,
int p,
int end)
|
protected static int |
hashValue(int h)
|
java.util.Iterator<V> |
iterator()
|
V |
put(byte[] bytes,
int p,
int end,
V value)
|
V |
put(byte[] bytes,
V value)
|
void |
putDirect(byte[] bytes,
int p,
int end,
V value)
|
void |
putDirect(byte[] bytes,
V value)
|
protected void |
resize(int newCapacity)
|
int |
size()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
table
protected org.joni.util.Hash.OniHashEntry<V>[] table
size
protected int size
BytesHash
public BytesHash()
BytesHash
public BytesHash(int size)
hashCode
public static int hashCode(byte[] bytes,
int p,
int end)
put
public V put(byte[] bytes,
V value)
put
public V put(byte[] bytes,
int p,
int end,
V value)
putDirect
public void putDirect(byte[] bytes,
V value)
putDirect
public void putDirect(byte[] bytes,
int p,
int end,
V value)
get
public V get(byte[] bytes)
get
public V get(byte[] bytes,
int p,
int end)
delete
public V delete(byte[] bytes)
delete
public V delete(byte[] bytes,
int p,
int end)
size
public final int size()
checkResize
protected final void checkResize()
resize
protected final void resize(int newCapacity)
bucketIndex
protected static int bucketIndex(int h,
int length)
hashValue
protected static int hashValue(int h)
iterator
public java.util.Iterator<V> iterator()
- Specified by:
iterator
in interface java.lang.Iterable<V>
entryIterator
public org.joni.util.Hash.OniHashIterator entryIterator()
Copyright © 2008. All Rights Reserved.