public class GuavaRuleKeyHasher extends Object implements RuleKeyHasher<com.google.common.hash.HashCode>
RuleKeyHasher
that wraps Guava's Hasher
.RuleKeyHasher.Container, RuleKeyHasher.Wrapper
Constructor and Description |
---|
GuavaRuleKeyHasher(com.google.common.hash.Hasher hasher) |
public GuavaRuleKeyHasher(com.google.common.hash.Hasher hasher)
public GuavaRuleKeyHasher putKey(String key)
RuleKeyHasher
putKey
in interface RuleKeyHasher<com.google.common.hash.HashCode>
public RuleKeyHasher<com.google.common.hash.HashCode> putKeyPath(Path key)
RuleKeyHasher
putKeyPath
in interface RuleKeyHasher<com.google.common.hash.HashCode>
public GuavaRuleKeyHasher putNull()
RuleKeyHasher
putNull
in interface RuleKeyHasher<com.google.common.hash.HashCode>
public GuavaRuleKeyHasher putCharacter(char val)
putCharacter
in interface RuleKeyHasher<com.google.common.hash.HashCode>
public GuavaRuleKeyHasher putBoolean(boolean val)
putBoolean
in interface RuleKeyHasher<com.google.common.hash.HashCode>
public GuavaRuleKeyHasher putNumber(Number val)
putNumber
in interface RuleKeyHasher<com.google.common.hash.HashCode>
public GuavaRuleKeyHasher putString(String val)
putString
in interface RuleKeyHasher<com.google.common.hash.HashCode>
public GuavaRuleKeyHasher putBytes(byte[] bytes)
putBytes
in interface RuleKeyHasher<com.google.common.hash.HashCode>
public GuavaRuleKeyHasher putPattern(Pattern pattern)
putPattern
in interface RuleKeyHasher<com.google.common.hash.HashCode>
public GuavaRuleKeyHasher putSha1(Sha1HashCode sha1)
RuleKeyHasher
putSha1
in interface RuleKeyHasher<com.google.common.hash.HashCode>
public GuavaRuleKeyHasher putPath(Path path, com.google.common.hash.HashCode hash)
putPath
in interface RuleKeyHasher<com.google.common.hash.HashCode>
public GuavaRuleKeyHasher putArchiveMemberPath(Path relativeArchivePath, Path archiveMemberPath, com.google.common.hash.HashCode hash)
putArchiveMemberPath
in interface RuleKeyHasher<com.google.common.hash.HashCode>
relativeArchivePath
- relative path to archive.archiveMemberPath
- path to archive member.public GuavaRuleKeyHasher putNonHashingPath(Path path)
putNonHashingPath
in interface RuleKeyHasher<com.google.common.hash.HashCode>
public GuavaRuleKeyHasher putRuleKey(RuleKey ruleKey)
putRuleKey
in interface RuleKeyHasher<com.google.common.hash.HashCode>
public GuavaRuleKeyHasher putRuleType(RuleType ruleType)
putRuleType
in interface RuleKeyHasher<com.google.common.hash.HashCode>
public GuavaRuleKeyHasher putBuildTarget(BuildTarget buildTarget)
putBuildTarget
in interface RuleKeyHasher<com.google.common.hash.HashCode>
public RuleKeyHasher<com.google.common.hash.HashCode> putBuildTargetSourcePath(BuildTargetSourcePath targetSourcePath)
putBuildTargetSourcePath
in interface RuleKeyHasher<com.google.common.hash.HashCode>
public GuavaRuleKeyHasher putContainer(RuleKeyHasher.Container container, int length)
RuleKeyHasher
putContainer
in interface RuleKeyHasher<com.google.common.hash.HashCode>
public GuavaRuleKeyHasher putWrapper(RuleKeyHasher.Wrapper wrapper)
putWrapper
in interface RuleKeyHasher<com.google.common.hash.HashCode>
public com.google.common.hash.HashCode hash()
RuleKeyHasher
hash
in interface RuleKeyHasher<com.google.common.hash.HashCode>