package com.flurry.org.apache.avro.specific;

import com.flurry.org.apache.avro.Schema;

/* loaded from: /storage/emulated/0/Documents/jadec/sources/com.UBI.A90.WW/dex-files/0.dex */
public abstract class SpecificRecordBase implements SpecificRecord, Comparable<SpecificRecord> {
    @Override // com.flurry.org.apache.avro.generic.IndexedRecord
    public abstract Object get(int i);

    @Override // com.flurry.org.apache.avro.generic.GenericContainer
    public abstract Schema getSchema();

    @Override // com.flurry.org.apache.avro.generic.IndexedRecord
    public abstract void put(int i, Object obj);

    public boolean equals(Object that) {
        if (that == this) {
            return true;
        }
        return (that instanceof SpecificRecord) && getClass() == that.getClass() && compareTo((SpecificRecord) that) == 0;
    }

    public int hashCode() {
        return SpecificData.get().hashCode(this, getSchema());
    }

    @Override // java.lang.Comparable
    public int compareTo(SpecificRecord that) {
        return SpecificData.get().compare(this, that, getSchema());
    }

    public String toString() {
        return SpecificData.get().toString(this);
    }
}
