Package org.apache.maven.buildcache.hash
Class Zah
- java.lang.Object
-
- org.apache.maven.buildcache.hash.Zah
-
- All Implemented Interfaces:
Hash.Factory
public class Zah extends Object implements Hash.Factory
Zero-Allocation-Hash based factory
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Zah.MemoryPolicy
-
Constructor Summary
Constructors Constructor Description Zah(String name, net.openhft.hashing.LongHashFunction hash, Zah.MemoryPolicy memoryPolicy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Hash.Algorithm
algorithm()
Hash.Checksum
checksum(int count)
String
getAlgorithm()
-
-
-
Constructor Detail
-
Zah
public Zah(String name, net.openhft.hashing.LongHashFunction hash, Zah.MemoryPolicy memoryPolicy)
-
-
Method Detail
-
getAlgorithm
public String getAlgorithm()
- Specified by:
getAlgorithm
in interfaceHash.Factory
-
algorithm
public Hash.Algorithm algorithm()
- Specified by:
algorithm
in interfaceHash.Factory
-
checksum
public Hash.Checksum checksum(int count)
- Specified by:
checksum
in interfaceHash.Factory
-
-