/** * 類常量 */ public class ConstParam { public static final String STATUS_1 = "1";// 狀態 public static final String STATUS_0 = "0";// 狀態 }
/** * 接口常量 */ public interface ScheduleType { static final Integer NORMAL = 0; static final Integer UPLOAD_FILE = 1; static final Integer SCHEDULE_STATUS = 2; static final Integer SCHEDULE_ASK = 3; }
/** * 枚舉常量 */ public enum Test { ONE(1),TWO(2),THREE(3); private Integer code; private Test(Integer code){ this.code = code; } public Integer getCode(){ return this.code; } }
待續......java