IconDefinition.java 838 Bytes
/*
 * Decompiled with CFR 0_118.
 */
package com.adobe.cq.mobile.platform.impl.store;

import java.awt.Dimension;

public class IconDefinition {
    private final String name;
    private final Dimension size;
    private final String density;

    public IconDefinition(String name, String size, String density) {
        this.name = name;
        int sizeInt = Integer.parseInt(size);
        this.size = new Dimension(sizeInt, sizeInt);
        this.density = density;
    }

    public IconDefinition(String name, String size) {
        this(name, size, null);
    }

    public String getName() {
        if (this.name != null) {
            return this.name;
        }
        return "";
    }

    public Dimension getSize() {
        return this.size;
    }

    public String getDensity() {
        return this.density;
    }
}