java - A multi-layer nested class. The json auxiliary class needs to be initialized. How to write it more easily?
阿神
阿神 2017-05-17 10:07:49
0
1
531
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;
                }
            }
        }
    }
}

It is too troublesome to call the set method for a new object
SeriesBean.LabelBean.EmphasisBean.TextStyleBean textStyleBean = new SeriesBean.LabelBean.EmphasisBean.TextStyleBean();It’s too scary to write like this

阿神
阿神

闭关修行中......

reply all(1)
滿天的星座

Don’t write it as an inner class...

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template