Class Priority
- java.lang.Object
-
- org.silverpeas.core.personalorganizer.model.Priority
-
- All Implemented Interfaces:
Serializable
,Comparable<Priority>
public class Priority extends Object implements Serializable, Comparable<Priority>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
MAXIMUM_PRIORITY
The maximum allowable priority value.static int
MINIMUM_PRIORITY
The minimum allowable priority value.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(Priority other)
boolean
equals(Object o)
static int[]
getAllPriorities()
int
getValue()
int
hashCode()
void
setValue(int newVal)
The purpose of this method is to set the value of the priority property.
-
-
-
Field Detail
-
MINIMUM_PRIORITY
public static final int MINIMUM_PRIORITY
The minimum allowable priority value. Please note that this refers to the case where no priority is set. This case happens to be represented by the value 0 which is the lowest integer value allowable.- See Also:
- Constant Field Values
-
MAXIMUM_PRIORITY
public static final int MAXIMUM_PRIORITY
The maximum allowable priority value. Please note that this refers to the highest possible integer value for priority. When interpreting this value it is seen as the lowest priority because the value 1 is the highest priority value.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Priority
public Priority()
This is the default constructor. It is used by Castor. You should probably use the constructor that takes an integer argument in your application code.
-
Priority
public Priority(int newval)
The purpose of this method is to create a new priority property with the given initial value.- Parameters:
newval
- The initial value of the priority property
-
-
Method Detail
-
getAllPriorities
public static int[] getAllPriorities()
-
getValue
public int getValue()
-
setValue
public final void setValue(int newVal)
The purpose of this method is to set the value of the priority property.- Parameters:
newVal
- The new value for the priority property
-
compareTo
public int compareTo(Priority other)
- Specified by:
compareTo
in interfaceComparable<Priority>
-
-