com.atlassian.jira.issue.comparator
Class PriorityObjectComparator

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

public class PriorityObjectComparator
extends Object
implements 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 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 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 Comparator<Priority>


Copyright © 2002-2011 Atlassian. All Rights Reserved.