Package nl.tue.storage
Class EqualOperation.Default<K>
- java.lang.Object
-
- nl.tue.storage.EqualOperation.Default<K>
-
- All Implemented Interfaces:
EqualOperation<K>
- Enclosing interface:
- EqualOperation<K>
public static class EqualOperation.Default<K> extends java.lang.Object implements EqualOperation<K>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface nl.tue.storage.EqualOperation
EqualOperation.Default<K>
-
-
Constructor Summary
Constructors Constructor Description Default()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(K object, CompressedStore<K> store, long l)Check for equality between a given object and a location in the store.
-
-
-
Method Detail
-
equals
public boolean equals(K object, CompressedStore<K> store, long l) throws StorageException
Check for equality between a given object and a location in the store. Should return true, if and only if the given object is indeed stored at index l in the store. Default equality reads the entire object from the store and then calls equals on the given object. Requires the store to have an inflater.- Specified by:
equalsin interfaceEqualOperation<K>- Parameters:
object-store-l-- Returns:
- Throws:
StorageException
-
-