public interface Priority extends AttributeValue
PriorityComparator
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Priority priority)
Compare this priority to another priority, imposing a total ordering on priorities.
|
String |
getPriority()
Get the priority representation.
|
String getPriority()
int compareTo(Priority priority) throws IllegalArgumentException
Only priorities originating from the same dictionary may be compared. If the
priority parameter is not of the expected Priority
subclass, the method
may throw an IllegalArgumentException
.
If, in a given dictionary, some dictionary entries have a priority attribute set, while others don't, the contract is that the entries without priority attribute have a lower priority than those with the attribute.
IllegalArgumentException
Copyright © 2001-2013 the JGloss developers. All Rights Reserved.