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