package com.tencent.mm.plugin.fts.a.a;

import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.plugin.fts.a.a.g.b;
import com.tencent.mm.plugin.fts.a.a.g.c;
import com.tencent.mm.plugin.fts.a.a.g.d;
import com.tencent.ytcommon.BuildConfig;

public class d$b implements Comparable<d$b> {
    public c mDO;
    public int mDP = -1;
    public int mDQ = -1;

    public final /* bridge */ /* synthetic */ int compareTo(Object obj) {
        return this.mDP - ((d$b) obj).mDP;
    }

    public final boolean isAvailable() {
        return (this.mDP == -1 || this.mDQ == -1) ? false : true;
    }

    public final String bAk() {
        AppMethodBeat.i(114241);
        if (this.mDO != null && this.mDO.mEg.size() > 0) {
            for (b bVar : this.mDO.mEg) {
                if (bVar.mEe == d.mEj) {
                    String str = bVar.content;
                    AppMethodBeat.o(114241);
                    return str;
                }
            }
        }
        AppMethodBeat.o(114241);
        return null;
    }

    public final String toString() {
        AppMethodBeat.i(114242);
        String str = "FTSQueryHLRequest.Item %s %d %d";
        Object[] objArr = new Object[3];
        objArr[0] = this.mDO == null ? BuildConfig.FLAVOR : this.mDO.bAn().replaceAll("​", ",");
        objArr[1] = Integer.valueOf(this.mDP);
        objArr[2] = Integer.valueOf(this.mDQ);
        String format = String.format(str, objArr);
        AppMethodBeat.o(114242);
        return format;
    }
}
