常量类示例

常量类示例

    以下是一个常量类的例子

package com.app.context;

public class AConst{
    public static enum Auth{
        //学生
        STUDENT,
        //老师
        TEACHER,
        //管理员
        SYSTEM,
        
        public String get(){
            return this.name.toLowcase();
        }
    }
    
    public  static  enum Type{
            COMMON(0),
            HIGH(1);
            
            private Integer flag;
            private Type(Integer flag){
                this.flag;
            }
            
            public Integer get(){
                return flag;
            }
    }
    
    public static final Integer IS_FRESH=1;
    public static final Integer NOT_FRESH=0;
    
    public static final String SITE_URL="http://www.onefish.pw"
}



2018-10-30鱼鱼

{{blog.title}}

创建于 {{blog.createTimeStr}}   created  by  {{blog.author}} {{tag}}
最后修改于 {{blog.timelineStr}}
修改文档