Class PlainImageMatcher

    • Constructor Detail

      • PlainImageMatcher

        public PlainImageMatcher()
    • Method Detail

      • addHashingAlgorithm

        public boolean addHashingAlgorithm​(HashingAlgorithm hashingAlgorithm)
        Append a new hashing algorithm to be used by this matcher. The same algorithm may only be added once. Attempts to add the same algorithm twice is a NOP.

        For some matchers the order of added hashing algorithms is crucial. The order the hashes are added is preserved.

        Parameters:
        hashingAlgorithm - The algorithms to be added
        Returns:
        true if the algorithm was added, false if it was already present
      • removeHashingAlgorithm

        public boolean removeHashingAlgorithm​(HashingAlgorithm hashingAlgorithm)
        Remove a hashing algorithm from this matcher.
        Parameters:
        hashingAlgorithm - The algorithms to be removed
        Returns:
        true if the algorithm was removed, false if it was not present.
      • clearHashingAlgorithms

        public void clearHashingAlgorithms()
        Remove all hashing algorithms used by this image matcher instance. At least one algorithm has to be supplied before images can be processed
      • getAlgorithms

        public Set<HashingAlgorithm> getAlgorithms()
        Returns:
        an unmofifiable collection of the hashing algorithms added to this matcher.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object