Interface WorklistRevision
-
- All Superinterfaces:
Serializable
public interface WorklistRevision extends Serializable
A worklist revision provides the amount of changes of a worklist (worklist updates) and also the initialisation date of the worklist. The latter allows to detect worklist manager restarts which will restart the update count.
-
-
Field Summary
Fields Modifier and Type Field Description static long
INITIAL_REVISION
The constant indicating the initial revision.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static boolean
equals(Object obj1, Object obj2)
Indicates whether the given objects are "equal to" each other.long
getInitialisationDate()
Gets the initialisation date of the worklist.long
getUpdateCount()
Gets the amount of updates of the worklist since the worklist manager start.static int
hashCode(WorklistRevision rev)
Returns a hash code value for the given worklist revision.static String
toString(WorklistRevision rev)
Returns a string representation of the given worklist revision.
-
-
-
Field Detail
-
INITIAL_REVISION
static final long INITIAL_REVISION
The constant indicating the initial revision. This is the revision of an empty worklist.- See Also:
- Constant Field Values
-
-
Method Detail
-
getInitialisationDate
long getInitialisationDate()
Gets the initialisation date of the worklist.- Returns:
- The initialisation date of the worklist.
-
getUpdateCount
long getUpdateCount()
Gets the amount of updates of the worklist since the worklist manager start.- Returns:
- The amount of updates of the worklist since the worklist manager start.
-
equals
static boolean equals(Object obj1, Object obj2)
Indicates whether the given objects are "equal to" each other.- Parameters:
obj1
- The first reference object.obj2
- The second reference object with which to compare.- Returns:
true
if the first object is the same as the second object argument;false
otherwise.- See Also:
Object.equals(Object)
-
hashCode
static int hashCode(WorklistRevision rev)
Returns a hash code value for the given worklist revision.- Parameters:
rev
- The worklist revision that should be used for the hash code.- Returns:
- A hash code value for the given worklist revision.
- See Also:
Object.hashCode()
-
toString
static String toString(WorklistRevision rev)
Returns a string representation of the given worklist revision.- Parameters:
rev
- The worklist revision that should be used for the string representation.- Returns:
- A string representation of the given worklist revision.
- See Also:
Object.toString()
-
-