public class AclTypeComparator extends Object implements Comparator<org.gcube.common.homelibrary.home.workspace.accessmanager.ACLType>
Modifier and Type | Field and Description |
---|---|
static Map<org.gcube.common.homelibrary.home.workspace.accessmanager.ACLType,Integer> |
aclTypeOrder |
Constructor and Description |
---|
AclTypeComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(org.gcube.common.homelibrary.home.workspace.accessmanager.ACLType o1,
org.gcube.common.homelibrary.home.workspace.accessmanager.ACLType o2) |
List<org.gcube.common.homelibrary.home.workspace.accessmanager.ACLType> |
getAllowed(org.gcube.common.homelibrary.home.workspace.accessmanager.ACLType aclType,
boolean includeEqual)
Gets the allowed.
|
static void |
main(String[] args)
The main method.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals
public int compare(org.gcube.common.homelibrary.home.workspace.accessmanager.ACLType o1, org.gcube.common.homelibrary.home.workspace.accessmanager.ACLType o2)
compare
in interface Comparator<org.gcube.common.homelibrary.home.workspace.accessmanager.ACLType>
public List<org.gcube.common.homelibrary.home.workspace.accessmanager.ACLType> getAllowed(org.gcube.common.homelibrary.home.workspace.accessmanager.ACLType aclType, boolean includeEqual)
aclType
- the acl type to compareincludeEqual
- if true include equal ACLType, no otherwisepublic static void main(String[] args)
args
- the argumentsCopyright © 2016. All Rights Reserved.