Package com.isode.som
Class SomPriority
- java.lang.Object
-
- com.isode.som.SomPriority
-
public class SomPriority extends java.lang.Object
Java implementation of message priority values, including Military settings- Author:
- tc
-
-
Field Summary
Fields Modifier and Type Field Description static int
SOM_PRIO_BULK
static int
SOM_PRIO_DEFFERED
static int
SOM_PRIO_FLASH
static int
SOM_PRIO_IMMEDIATE
static int
SOM_PRIO_JUNK
static int
SOM_PRIO_LIMIT
static int
SOM_PRIO_NON_URGENT
static int
SOM_PRIO_NORMAL
static int
SOM_PRIO_OVERRIDE
static int
SOM_PRIO_PRIORITY
static int
SOM_PRIO_ROUTINE
static int
SOM_PRIO_URGENT
-
Constructor Summary
Constructors Constructor Description SomPriority()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
getCount()
Returns number of priorities.static int
getCountWithoutBulkJunk()
static java.lang.String
name(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()
-
-