package epson.common;

import java.util.ArrayList;
import java.util.List;

public class CustomListRowImpl implements CustomListRow {
    private Integer prefixImage = 0;
    List<Float> size;
    private Integer suffixImage = 0;
    List<String> texts;

    public static CustomListRowImpl create() {
        CustomListRowImpl customListRowImpl = new CustomListRowImpl();
        customListRowImpl.texts = new ArrayList();
        customListRowImpl.size = new ArrayList();
        return customListRowImpl;
    }

    public CustomListRowImpl prefixImage(Integer num) {
        prefixImage = num;
        return this;
    }

    public CustomListRowImpl suffixImage(Integer num) {
        suffixImage = num;
        return this;
    }

    public CustomListRowImpl addText(String str, float f) {
        texts.add(str);
        size.add(Float.valueOf(f));
        return this;
    }

    public CustomListRowImpl addText(String str) {
        texts.add(str);
        size.add(Float.valueOf(0.0f));
        return this;
    }

    public Integer getPrefixImageId() {
        return prefixImage;
    }

    public Integer getSuffixImageId() {
        return suffixImage;
    }

    public String getText(int i) {
        return texts.get(i);
    }

    public float getTextSize(int i) {
        return size.get(i).floatValue();
    }

    public int sieze() {
        return texts.size();
    }
}
