Class ProjectComponentComparator
java.lang.Object
com.atlassian.jira.bc.project.component.ProjectComponentComparator
- All Implemented Interfaces:
Comparator<ProjectComponent>
@PublicApi
public class ProjectComponentComparator
extends Object
implements Comparator<ProjectComponent>
Comparator for ProjectComponent objects, singleton, use static instance.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Comparator<String>
static final ProjectComponentComparator
Compares two ProjectComponents, grouping them by project and then by case-insensitive component name. -
Method Summary
Modifier and TypeMethodDescriptionint
compare
(ProjectComponent projectComponent1, ProjectComponent projectComponent2) 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, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
INSTANCE
Compares two ProjectComponents, grouping them by project and then by case-insensitive component name. -
COMPONENT_NAME_COMPARATOR
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<ProjectComponent>
-