org.jcodings.util
Class BytesHash<V>

java.lang.Object
  extended by org.jcodings.util.Hash<V>
      extended by org.jcodings.util.BytesHash<V>
All Implemented Interfaces:
Iterable<V>

public final class BytesHash<V>
extends Hash<V>


Nested Class Summary
static class BytesHash.BytesHashEntry<V>
           
 
Nested classes/interfaces inherited from class org.jcodings.util.Hash
Hash.HashEntryIterator, Hash.HashIterator
 
Field Summary
 
Fields inherited from class org.jcodings.util.Hash
head, size, table
 
Constructor Summary
BytesHash()
           
BytesHash(int size)
           
 
Method Summary
 V delete(byte[] bytes)
           
 V delete(byte[] bytes, int p, int end)
           
 V get(byte[] bytes)
           
 V get(byte[] bytes, int p, int end)
           
static int hashCode(byte[] bytes, int p, int end)
           
protected  void init()
           
 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)
           
 
Methods inherited from class org.jcodings.util.Hash
bucketIndex, checkResize, entryIterator, hashValue, iterator, resize, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BytesHash

public BytesHash()

BytesHash

public BytesHash(int size)
Method Detail

init

protected void init()
Specified by:
init in class Hash<V>

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)


Copyright © 2011. All Rights Reserved.