Class AHashFileCompareGroupFunction
- java.lang.Object
-
- com.g2forge.alexandria.java.io.file.compare.AHashFileCompareGroupFunction
-
- All Implemented Interfaces:
IFileCompareGroupFunction<OrThrowable<String>>
- Direct Known Subclasses:
SHA1HashFileCompareGroupFunction
,TextHashFileCompareGroupFunction
public abstract class AHashFileCompareGroupFunction extends Object implements IFileCompareGroupFunction<OrThrowable<String>>
-
-
Constructor Summary
Constructors Constructor Description AHashFileCompareGroupFunction()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected HashFileCompareGroup
computeGroup(Path key, OrThrowable<String> value)
protected abstract String
computeHashString(Path path)
Map<IFileCompareGroup,Set<Path>>
group(Map<Path,? extends OrThrowable<String>> hashes)
OrThrowable<String>
hash(Path path)
-
-
-
Method Detail
-
computeGroup
protected HashFileCompareGroup computeGroup(Path key, OrThrowable<String> value)
-
computeHashString
protected abstract String computeHashString(Path path) throws IOException
- Throws:
IOException
-
group
public Map<IFileCompareGroup,Set<Path>> group(Map<Path,? extends OrThrowable<String>> hashes)
- Specified by:
group
in interfaceIFileCompareGroupFunction<OrThrowable<String>>
-
hash
public OrThrowable<String> hash(Path path)
- Specified by:
hash
in interfaceIFileCompareGroupFunction<OrThrowable<String>>
-
-