Package nl.tue.storage
Class HashOperation.Default<K>
- java.lang.Object
-
- nl.tue.storage.HashOperation.Default<K>
-
- All Implemented Interfaces:
HashOperation<K>
- Enclosing interface:
- HashOperation<K>
public static class HashOperation.Default<K> extends java.lang.Object implements HashOperation<K>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface nl.tue.storage.HashOperation
HashOperation.Default<K>
-
-
Constructor Summary
Constructors Constructor Description Default()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetHashCode(K object)Return the hashCode of the objectintgetHashCode(CompressedStore<K> store, long l)Retrieve the object from the store and return its hashCode.
-
-
-
Method Detail
-
getHashCode
public int getHashCode(K object)
Return the hashCode of the object- Specified by:
getHashCodein interfaceHashOperation<K>- Parameters:
object-- Returns:
-
getHashCode
public int getHashCode(CompressedStore<K> store, long l) throws StorageException
Retrieve the object from the store and return its hashCode. Requires the store to have a non-null inflater- Specified by:
getHashCodein interfaceHashOperation<K>- Parameters:
store-l-- Returns:
- Throws:
StorageException
-
-