Package com.isode.som
Class SomPriority
- java.lang.Object
-
- com.isode.som.SomPriority
-
public class SomPriority extends java.lang.ObjectJava implementation of message priority values, including Military settings- Author:
- tc
-
-
Field Summary
Fields Modifier and Type Field Description static intSOM_PRIO_BULKstatic intSOM_PRIO_DEFFEREDstatic intSOM_PRIO_FLASHstatic intSOM_PRIO_IMMEDIATEstatic intSOM_PRIO_JUNKstatic intSOM_PRIO_LIMITstatic intSOM_PRIO_NON_URGENTstatic intSOM_PRIO_NORMALstatic intSOM_PRIO_OVERRIDEstatic intSOM_PRIO_PRIORITYstatic intSOM_PRIO_ROUTINEstatic intSOM_PRIO_URGENT
-
Constructor Summary
Constructors Constructor Description SomPriority()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intgetCount()Returns number of priorities.static intgetCountWithoutBulkJunk()static java.lang.Stringname(int prio, boolean military)Return priority name
-
-
-
Field Detail
-
SOM_PRIO_OVERRIDE
public static final int SOM_PRIO_OVERRIDE
- See Also:
- Constant Field Values
-
SOM_PRIO_URGENT
public static final int SOM_PRIO_URGENT
- See Also:
- Constant Field Values
-
SOM_PRIO_FLASH
public static final int SOM_PRIO_FLASH
- See Also:
- Constant Field Values
-
SOM_PRIO_IMMEDIATE
public static final int SOM_PRIO_IMMEDIATE
- See Also:
- Constant Field Values
-
SOM_PRIO_NORMAL
public static final int SOM_PRIO_NORMAL
- See Also:
- Constant Field Values
-
SOM_PRIO_PRIORITY
public static final int SOM_PRIO_PRIORITY
- See Also:
- Constant Field Values
-
SOM_PRIO_ROUTINE
public static final int SOM_PRIO_ROUTINE
- See Also:
- Constant Field Values
-
SOM_PRIO_NON_URGENT
public static final int SOM_PRIO_NON_URGENT
- See Also:
- Constant Field Values
-
SOM_PRIO_DEFFERED
public static final int SOM_PRIO_DEFFERED
- See Also:
- Constant Field Values
-
SOM_PRIO_BULK
public static final int SOM_PRIO_BULK
- See Also:
- Constant Field Values
-
SOM_PRIO_JUNK
public static final int SOM_PRIO_JUNK
- See Also:
- Constant Field Values
-
SOM_PRIO_LIMIT
public static final int SOM_PRIO_LIMIT
- See Also:
- Constant Field Values
-
-
Method Detail
-
name
public static java.lang.String name(int prio, boolean military)Return priority name- Parameters:
prio- priority IDmilitary- if military names- Returns:
- name or null (if prio unknown)
-
getCount
public static int getCount()
Returns number of priorities.- Returns:
- number of priorities
-
getCountWithoutBulkJunk
public static int getCountWithoutBulkJunk()
-
-