com.atlassian.jira.issue.comparator
Class PriorityObjectComparator

java.lang.Object
  extended by com.atlassian.jira.issue.comparator.PriorityObjectComparator
All Implemented Interfaces:
java.util.Comparator<Priority>

public class PriorityObjectComparator
extends java.lang.Object
implements java.util.Comparator<Priority>

Comparator for Priority based on sequence. See also PriorityComparator which is for priority GenericValues. Priority Sequences are from highest priority to lowest

Since:
v4.0

Field Summary
static java.util.Comparator<Priority> PRIORITY_OBJECT_COMPARATOR
          A Comparator that orders Priority objects by their configured sequence.
 
Method Summary
 int compare(Priority priority, Priority priority1)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Field Detail

PRIORITY_OBJECT_COMPARATOR

public static final java.util.Comparator<Priority> PRIORITY_OBJECT_COMPARATOR
A Comparator that orders Priority objects by their configured sequence.

Method Detail

compare

public int compare(Priority priority,
                   Priority priority1)
Specified by:
compare in interface java.util.Comparator<Priority>


Copyright © 2002-2010 Atlassian. All Rights Reserved.