01: package org.claros.commons.mail.models;
02:
03: public class EmailPriority {
04:
05: public static final int HIGHEST = 1;
06: public static final int HIGH = 2;
07: public static final int NORMAL = 3;
08: public static final int LOW = 4;
09: public static final int LOWEST = 5;
10:
11: public static String toStringValue(int val) {
12: switch (val) {
13: case HIGHEST:
14: case HIGH:
15: return "High";
16: case LOW:
17: case LOWEST:
18: return "Low";
19: default:
20: return "Normal";
21: }
22: }
23: }
|