package coil.size;

import kotlin.jvm.internal.h;

/* JADX INFO: loaded from: classes.dex */
public abstract class Dimension {

    public static final class Pixels extends Dimension {
        public final int px;

        public Pixels(int i6) {
            super(null);
            this.px = i6;
            if (i6 <= 0) {
                throw new IllegalArgumentException("px must be > 0.");
            }
        }

        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            return (obj instanceof Pixels) && this.px == ((Pixels) obj).px;
        }

        public int hashCode() {
            return this.px;
        }

        public String toString() {
            return String.valueOf(this.px);
        }
    }

    public static final class Undefined extends Dimension {
        public static final Undefined INSTANCE = new Undefined();

        private Undefined() {
            super(null);
        }

        public String toString() {
            return "Dimension.Undefined";
        }
    }

    public /* synthetic */ Dimension(h hVar) {
        this();
    }

    private Dimension() {
    }
}
