Class EqualOperation.Default<K>

    • Constructor Summary

      Constructors 
      Constructor Description
      Default()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(K object, CompressedStore<K> store, long l)
      Check for equality between a given object and a location in the store.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Default

        public Default()
    • 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:
        equals in interface EqualOperation<K>
        Parameters:
        object -
        store -
        l -
        Returns:
        Throws:
        StorageException