com.atlassian.jira.sharing.type
Class ProjectSharePermissionComparator

java.lang.Object
  extended by com.atlassian.jira.sharing.type.ProjectSharePermissionComparator
All Implemented Interfaces:
Comparator<SharePermission>

public class ProjectSharePermissionComparator
extends Object

Compares to Project share types.

Since:
v3.13

Constructor Summary
ProjectSharePermissionComparator(ProjectManager projectManager, ProjectRoleManager projectRoleManager)
           
 
Method Summary
 int compare(SharePermission perm1, SharePermission perm2)
           
protected static int compareNull(Object obj1, Object obj2)
           
 int comparePermissions(SharePermission perm1, SharePermission perm2)
           
 
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
 

Constructor Detail

ProjectSharePermissionComparator

public ProjectSharePermissionComparator(ProjectManager projectManager,
                                        ProjectRoleManager projectRoleManager)
Method Detail

comparePermissions

public int comparePermissions(SharePermission perm1,
                              SharePermission perm2)

compare

public final int compare(SharePermission perm1,
                         SharePermission perm2)
Specified by:
compare in interface Comparator<SharePermission>

compareNull

protected static int compareNull(Object obj1,
                                 Object obj2)


Copyright © 2002-2014 Atlassian. All Rights Reserved.