public enum PriorityCollectionSorting extends Enum<PriorityCollectionSorting> implements ByName<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, do not sort otherwise.
|
| Modifier and Type | Method and Description |
|---|---|
PriorityCollectionSorting |
byName(CharSequence name) |
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 sortpublic abstract <O> List<O> sortInputSet(List<O> list)
O - type of elementslist - list to sortpublic PriorityCollectionSorting byName(CharSequence name)
byName in interface ByName<PriorityCollectionSorting>name - the name to map to an objectCopyright © 2020 The University of Manchester. All rights reserved.