Commit f94380b95dc155d600dc681ad771064278fec601

Authored by jiangjiazhi
1 parent 5b29b1da10

增加年龄单位枚举

Showing 1 changed file with 25 additions and 0 deletions

platform-common/src/main/java/com/lyms/platform/common/enums/AgeUnitEnums.java View file @ f94380b
  1 +package com.lyms.platform.common.enums;
  2 +
  3 +/**
  4 + * Created by Administrator on 2016/3/29 0029.
  5 + */
  6 +public enum AgeUnitEnums {
  7 +
  8 + DAY("天",1),MONTH("月",2),YEAR("年",3);
  9 +
  10 + private AgeUnitEnums(String title,int id){
  11 + this.title=title;
  12 + this.id
  13 + =id;
  14 + }
  15 + private String title;
  16 + private int id;
  17 +
  18 + public int getId() {
  19 + return id;
  20 + }
  21 +
  22 + public String getTitle() {
  23 + return title;
  24 + }
  25 +}