jimu-decompiled/sources/com/bumptech/glide/load/engine/DataCacheKey.java
2025-05-13 19:24:51 +02:00

40 lines
1.0 KiB
Java

package com.bumptech.glide.load.engine;
import com.bumptech.glide.load.Key;
import java.security.MessageDigest;
/* loaded from: classes.dex */
final class DataCacheKey implements Key {
private final Key b;
private final Key c;
DataCacheKey(Key key, Key key2) {
this.b = key;
this.c = key2;
}
@Override // com.bumptech.glide.load.Key
public void a(MessageDigest messageDigest) {
this.b.a(messageDigest);
this.c.a(messageDigest);
}
@Override // com.bumptech.glide.load.Key
public boolean equals(Object obj) {
if (!(obj instanceof DataCacheKey)) {
return false;
}
DataCacheKey dataCacheKey = (DataCacheKey) obj;
return this.b.equals(dataCacheKey.b) && this.c.equals(dataCacheKey.c);
}
@Override // com.bumptech.glide.load.Key
public int hashCode() {
return (this.b.hashCode() * 31) + this.c.hashCode();
}
public String toString() {
return "DataCacheKey{sourceKey=" + this.b + ", signature=" + this.c + '}';
}
}