Rev 22124 | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed
package com.spice.profitmandi.common.enumuration;public enum ContentType {PDF(0), JPEG(1), PNG(2), DOC(3), DOCX(4), XLS(5), XLSX(6);private final int value;private ContentType(int value) {this.value = value;}public int getValue() {return value;}public static ContentType findByValue(int value) {switch (value) {case 0:return PDF;case 1:return JPEG;case 2:return PNG;case 3:return DOC;case 4:return DOCX;case 5:return XLS;case 6:return XLSX;default:return null;}}}