Rabbit-R1/android (non root)/java/sources/androidx/media3/container/CreationTime.java
2024-05-21 17:08:36 -04:00

59 lines
1.8 KiB
Java

package androidx.media3.container;
import android.os.Parcel;
import android.os.Parcelable;
import androidx.media3.common.Metadata;
import com.google.common.primitives.Longs;
/* loaded from: classes2.dex */
public final class CreationTime implements Metadata.Entry {
public static final Parcelable.Creator<CreationTime> CREATOR = new Parcelable.Creator<CreationTime>() { // from class: androidx.media3.container.CreationTime.1
/* JADX WARN: Can't rename method to resolve collision */
@Override // android.os.Parcelable.Creator
public CreationTime createFromParcel(Parcel parcel) {
return new CreationTime(parcel);
}
/* JADX WARN: Can't rename method to resolve collision */
@Override // android.os.Parcelable.Creator
public CreationTime[] newArray(int i) {
return new CreationTime[i];
}
};
public final long timestampMs;
@Override // android.os.Parcelable
public int describeContents() {
return 0;
}
public CreationTime(long j) {
this.timestampMs = j;
}
private CreationTime(Parcel parcel) {
this.timestampMs = parcel.readLong();
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
return (obj instanceof CreationTime) && this.timestampMs == ((CreationTime) obj).timestampMs;
}
public int hashCode() {
return Longs.hashCode(this.timestampMs);
}
public String toString() {
StringBuilder sb = new StringBuilder("Creation time: ");
long j = this.timestampMs;
return sb.append(j == -2082844800000L ? "unset" : Long.valueOf(j)).toString();
}
@Override // android.os.Parcelable
public void writeToParcel(Parcel parcel, int i) {
parcel.writeLong(this.timestampMs);
}
}