package j;

/* JADX INFO: compiled from: UByte.kt */
/* JADX INFO: loaded from: classes.dex */
public final class x implements Comparable<x> {
    public static final a d = new a(null);
    private final byte b;

    /* JADX INFO: compiled from: UByte.kt */
    public static final class a {
        private a() {
        }

        public /* synthetic */ a(j.p0.d.j jVar) {
            this();
        }
    }

    private /* synthetic */ x(byte b) {
        this.b = b;
    }

    public static final /* synthetic */ x a(byte b) {
        return new x(b);
    }

    public static byte b(byte b) {
        return b;
    }

    public static boolean c(byte b, Object obj) {
        return (obj instanceof x) && b == ((x) obj).f();
    }

    public static int d(byte b) {
        return b;
    }

    public static String e(byte b) {
        return String.valueOf(b & 255);
    }

    @Override // java.lang.Comparable
    public /* bridge */ /* synthetic */ int compareTo(x xVar) {
        return j.p0.d.r.h(f() & 255, xVar.f() & 255);
    }

    public boolean equals(Object obj) {
        return c(this.b, obj);
    }

    public final /* synthetic */ byte f() {
        return this.b;
    }

    public int hashCode() {
        byte b = this.b;
        d(b);
        return b;
    }

    public String toString() {
        return e(this.b);
    }
}
