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 classZah.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.Algorithmalgorithm()Hash.Checksumchecksum(int count)StringgetAlgorithm()
-
-
-
Constructor Detail
-
Zah
public Zah(String name, net.openhft.hashing.LongHashFunction hash, Zah.MemoryPolicy memoryPolicy)
-
-
Method Detail
-
getAlgorithm
public String getAlgorithm()
- Specified by:
getAlgorithmin interfaceHash.Factory
-
algorithm
public Hash.Algorithm algorithm()
- Specified by:
algorithmin interfaceHash.Factory
-
checksum
public Hash.Checksum checksum(int count)
- Specified by:
checksumin interfaceHash.Factory
-
-