org.mapdb
Interface Hasher<K>


public interface Hasher<K>

Calculates hash from an object. It also provides `equals` method. Provides an alternative hashing method for HTreeMap

Author:
Jan Kotek

Field Summary
static Hasher<Object[]> ARRAY
           
static Hasher BASIC
           
static Hasher<byte[]> BYTE_ARRAY
           
static Hasher<char[]> CHAR_ARRAY
           
static Hasher<double[]> DOUBLE_ARRAY
           
static Hasher<int[]> INT_ARRAY
           
static Hasher<long[]> LONG_ARRAY
           
 
Method Summary
 boolean equals(K k1, K k2)
           
 int hashCode(K k)
           
 

Field Detail

BASIC

static final Hasher BASIC

BYTE_ARRAY

static final Hasher<byte[]> BYTE_ARRAY

CHAR_ARRAY

static final Hasher<char[]> CHAR_ARRAY

INT_ARRAY

static final Hasher<int[]> INT_ARRAY

LONG_ARRAY

static final Hasher<long[]> LONG_ARRAY

DOUBLE_ARRAY

static final Hasher<double[]> DOUBLE_ARRAY

ARRAY

static final Hasher<Object[]> ARRAY
Method Detail

hashCode

int hashCode(K k)

equals

boolean equals(K k1,
               K k2)


Copyright © 2014. All Rights Reserved.