Class EmptyRepositoryHashSearch
- java.lang.Object
-
- org.apache.maven.shared.jar.identification.repository.EmptyRepositoryHashSearch
-
- All Implemented Interfaces:
RepositoryHashSearch
public class EmptyRepositoryHashSearch extends java.lang.Object implements 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 aRepositoryHashSearch
against a real repository.
-
-
Constructor Summary
Constructors Constructor Description EmptyRepositoryHashSearch()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List
searchBytecodeHash(java.lang.String hash)
Search the repository for artifacts matching the given hash code when consider the bytecode of the classes in the file.java.util.List
searchFileHash(java.lang.String hash)
Search the repository for artifacts matching the given hash code when consider the entire contents of the file.
-
-
-
Method Detail
-
searchBytecodeHash
public java.util.List searchBytecodeHash(java.lang.String hash)
Description copied from interface:RepositoryHashSearch
Search the repository for artifacts matching the given hash code when consider the bytecode of the classes in the file.- Specified by:
searchBytecodeHash
in interfaceRepositoryHashSearch
- Parameters:
hash
- the hash code to use- Returns:
- a list of
Artifact
instances that matched
-
searchFileHash
public java.util.List searchFileHash(java.lang.String hash)
Description copied from interface:RepositoryHashSearch
Search the repository for artifacts matching the given hash code when consider the entire contents of the file.- Specified by:
searchFileHash
in interfaceRepositoryHashSearch
- Parameters:
hash
- the hash code to use- Returns:
- a list of
Artifact
instances that matched
-
-