Class EmptyRepositoryHashSearch
java.lang.Object
org.apache.maven.shared.jar.identification.repository.EmptyRepositoryHashSearch
- All Implemented Interfaces:
RepositoryHashSearch
Empty repository hash search. Always returns an empty list.
Used for local only implementation of a RepositoryHashSearch. It is expected for the users of this library to provide
an implementation of a
RepositoryHashSearch against a
real repository.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsearchBytecodeHash(String hash) Search the repository for artifacts matching the given hash code when consider the bytecode of the classes in the file.searchFileHash(String hash) Search the repository for artifacts matching the given hash code when consider the entire contents of the file.
-
Constructor Details
-
EmptyRepositoryHashSearch
public EmptyRepositoryHashSearch()
-
-
Method Details
-
searchBytecodeHash
Description copied from interface:RepositoryHashSearchSearch the repository for artifacts matching the given hash code when consider the bytecode of the classes in the file.- Specified by:
searchBytecodeHashin interfaceRepositoryHashSearch- Parameters:
hash- the hash code to use- Returns:
- a list of
Artifactinstances that matched
-
searchFileHash
Description copied from interface:RepositoryHashSearchSearch the repository for artifacts matching the given hash code when consider the entire contents of the file.- Specified by:
searchFileHashin interfaceRepositoryHashSearch- Parameters:
hash- the hash code to use- Returns:
- a list of
Artifactinstances that matched
-