public class PieOption {
private SeriesBean series;
public static class SeriesBean {
private LabelBean label;
public static class LabelBean {
private EmphasisBean emphasis;
public static class EmphasisBean {
private boolean show;
private TextStyleBean textStyle;
public static class TextStyleBean {
private String fontSize;
private String fontWeight;
}
}
}
}
}
new個物件再來呼叫set方法實在是太費事了SeriesBean.LabelBean.EmphasisBean.TextStyleBean textStyleBean = new SeriesBean.LabelBean.EmphasisBean.TextStyleBean();
就這樣寫太可怕了
不要寫成內部類別...