public abstract class ForwardingRuleKeyHasher<HASH,HASH2> extends Object implements RuleKeyHasher<HASH>
RuleKeyHasher
that forwards all the methods to the two underlying hashers.
hash()
invokes the method of the both underlying hashers and
returns the hash of the first one.
RuleKeyHasher.Container, RuleKeyHasher.Wrapper
Modifier | Constructor and Description |
---|---|
protected |
ForwardingRuleKeyHasher(RuleKeyHasher<HASH> firstHasher,
RuleKeyHasher<HASH2> secondHasher) |
protected ForwardingRuleKeyHasher(RuleKeyHasher<HASH> firstHasher, RuleKeyHasher<HASH2> secondHasher)
public ForwardingRuleKeyHasher<HASH,HASH2> putKey(String key)
RuleKeyHasher
putKey
in interface RuleKeyHasher<HASH>
public RuleKeyHasher<HASH> putKeyPath(Path key)
RuleKeyHasher
putKeyPath
in interface RuleKeyHasher<HASH>
public ForwardingRuleKeyHasher<HASH,HASH2> putNull()
RuleKeyHasher
putNull
in interface RuleKeyHasher<HASH>
public ForwardingRuleKeyHasher<HASH,HASH2> putCharacter(char val)
putCharacter
in interface RuleKeyHasher<HASH>
public ForwardingRuleKeyHasher<HASH,HASH2> putBoolean(boolean val)
putBoolean
in interface RuleKeyHasher<HASH>
public ForwardingRuleKeyHasher<HASH,HASH2> putNumber(Number val)
putNumber
in interface RuleKeyHasher<HASH>
public ForwardingRuleKeyHasher<HASH,HASH2> putString(String val)
putString
in interface RuleKeyHasher<HASH>
public ForwardingRuleKeyHasher<HASH,HASH2> putBytes(byte[] bytes)
putBytes
in interface RuleKeyHasher<HASH>
public ForwardingRuleKeyHasher<HASH,HASH2> putPattern(Pattern pattern)
putPattern
in interface RuleKeyHasher<HASH>
public ForwardingRuleKeyHasher<HASH,HASH2> putSha1(Sha1HashCode sha1)
RuleKeyHasher
putSha1
in interface RuleKeyHasher<HASH>
public ForwardingRuleKeyHasher<HASH,HASH2> putPath(Path path, com.google.common.hash.HashCode hash)
putPath
in interface RuleKeyHasher<HASH>
public ForwardingRuleKeyHasher<HASH,HASH2> putArchiveMemberPath(Path relativeArchivePath, Path archiveMemberPath, com.google.common.hash.HashCode hash)
putArchiveMemberPath
in interface RuleKeyHasher<HASH>
relativeArchivePath
- relative path to archive.archiveMemberPath
- path to archive member.public ForwardingRuleKeyHasher<HASH,HASH2> putNonHashingPath(Path path)
putNonHashingPath
in interface RuleKeyHasher<HASH>
public ForwardingRuleKeyHasher<HASH,HASH2> putRuleKey(RuleKey ruleKey)
putRuleKey
in interface RuleKeyHasher<HASH>
public ForwardingRuleKeyHasher<HASH,HASH2> putRuleType(RuleType ruleType)
putRuleType
in interface RuleKeyHasher<HASH>
public ForwardingRuleKeyHasher<HASH,HASH2> putBuildTarget(BuildTarget buildTarget)
putBuildTarget
in interface RuleKeyHasher<HASH>
public ForwardingRuleKeyHasher<HASH,HASH2> putBuildTargetSourcePath(BuildTargetSourcePath buildTargetSourcePath)
putBuildTargetSourcePath
in interface RuleKeyHasher<HASH>
public ForwardingRuleKeyHasher<HASH,HASH2> putContainer(RuleKeyHasher.Container container, int length)
RuleKeyHasher
putContainer
in interface RuleKeyHasher<HASH>
public ForwardingRuleKeyHasher<HASH,HASH2> putWrapper(RuleKeyHasher.Wrapper wrapper)
putWrapper
in interface RuleKeyHasher<HASH>
public HASH hash()
RuleKeyHasher
hash
in interface RuleKeyHasher<HASH>