- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
52 lines
1.4 KiB
Java
52 lines
1.4 KiB
Java
package com.google.android.datatransport.runtime;
|
|
|
|
import com.google.android.datatransport.Encoding;
|
|
import java.util.Arrays;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class EncodedPayload {
|
|
public final byte[] bytes;
|
|
public final Encoding encoding;
|
|
|
|
public byte[] getBytes() {
|
|
return this.bytes;
|
|
}
|
|
|
|
public Encoding getEncoding() {
|
|
return this.encoding;
|
|
}
|
|
|
|
public EncodedPayload(Encoding encoding, byte[] bArr) {
|
|
if (encoding == null) {
|
|
throw new NullPointerException("encoding is null");
|
|
}
|
|
if (bArr == null) {
|
|
throw new NullPointerException("bytes is null");
|
|
}
|
|
this.encoding = encoding;
|
|
this.bytes = bArr;
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof EncodedPayload)) {
|
|
return false;
|
|
}
|
|
EncodedPayload encodedPayload = (EncodedPayload) obj;
|
|
if (this.encoding.equals(encodedPayload.encoding)) {
|
|
return Arrays.equals(this.bytes, encodedPayload.bytes);
|
|
}
|
|
return false;
|
|
}
|
|
|
|
public int hashCode() {
|
|
return ((this.encoding.hashCode() ^ 1000003) * 1000003) ^ Arrays.hashCode(this.bytes);
|
|
}
|
|
|
|
public String toString() {
|
|
return "EncodedPayload{encoding=" + this.encoding + ", bytes=[...]}";
|
|
}
|
|
}
|