QuestionContentType.java 526 B

12345678910111213141516171819202122
  1. package com.qxgmat.data.constants.enums;
  2. /**
  3. * Created by gaojie on 2017/11/19.
  4. */
  5. public enum QuestionContentType {
  6. SINGLE("single"),
  7. DOUBLE("double"),
  8. INLINE("inline"),
  9. ;
  10. final static public String message = "题目内容类型";
  11. public String key;
  12. private QuestionContentType(String key){
  13. this.key = key;
  14. }
  15. public static QuestionContentType ValueOf(String name){
  16. if (name == null) return null;
  17. return QuestionContentType.valueOf(name.toUpperCase());
  18. }
  19. }