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 ProjectComponentComparatorCompares two ProjectComponents, grouping them by project and then by case-insensitive component name. -
Method Summary
Modifier and TypeMethodDescriptionintcompare(ProjectComponent projectComponent1, ProjectComponent projectComponent2) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
comparein interfaceComparator<ProjectComponent>
-