package com.bytedance.ies.sdk.widgets;

import X.2HN;
import android.util.SparseIntArray;
import com.bytedance.covode.number.Covode;

public final class Ordering {
    public static final Companion Companion = new Companion((2HN) null);
    public static final int ORDER_START = 1000;
    public final SparseIntArray orders = new SparseIntArray();

    static {
        Covode.recordClassIndex(30538);
    }

    public static final class Companion {
        static {
            Covode.recordClassIndex(30539);
        }

        public /* synthetic */ Companion(2HN r1) {
            this();
        }

        public Companion() {
        }
    }

    public final int requestOrder(int i) {
        int i2;
        int i3 = this.orders.get(i, -1);
        if (i3 == -1) {
            i2 = ORDER_START;
        } else {
            i2 = i3 + 1;
        }
        this.orders.put(i, i2);
        return i2;
    }
}
