之前为工作室写过一本代码书写规范的小手册,但是其中多是变量、函数的命名,还有region、summary等的应用,今天看到一老外的代码结构,觉得不错,实行拿来主义,将它变成我的,稍作修改,下面是我的整体代码结构,以后可以直接来这里复制,省去很多事。
// ====================================================== // Constants // ====================================================== // ====================================================== // Fields // ====================================================== // ====================================================== // Constructors // ====================================================== // ====================================================== // Getter & Setter // ====================================================== // ====================================================== // Methods for/from SuperClass/Interfaces // ====================================================== // ====================================================== // Methods // ====================================================== // ====================================================== // Inner and Anonymous Classes // ======================================================
等号的个数是一个秘密,哈哈。