public enum PriorityCollectionSorting extends Enum<PriorityCollectionSorting>
| Enum Constant and Description |
|---|
ALWAYS
Always keep the collection sorted by HasPriority annotation values.
|
NEVER
Sorting of entries is disabled.
|
ON_SET_INJECTION_ONLY
Only sort according to HasPriority annotation when a Set is passed in
(this happens on Guice injection of entries), do not sort otherwise.
|
| Modifier and Type | Method and Description |
|---|---|
abstract <O> List<O> |
sort(List<O> list) |
abstract <O> List<O> |
sortInputSet(List<O> list) |
static PriorityCollectionSorting |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PriorityCollectionSorting[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PriorityCollectionSorting ALWAYS
public static final PriorityCollectionSorting ON_SET_INJECTION_ONLY
public static final PriorityCollectionSorting NEVER
public static PriorityCollectionSorting[] values()
for (PriorityCollectionSorting c : PriorityCollectionSorting.values()) System.out.println(c);
public static PriorityCollectionSorting valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic abstract <O> List<O> sort(List<O> list)
O - type of elementslist - list to sortCopyright © 2016 The University of Manchester. All Rights Reserved.