Enum-Klasse Priority
- Alle implementierten Schnittstellen:
Serializable, Comparable<Priority>, Constable
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen Enum
Enum.EnumDesc<E> -
Enum-Konstanten - Übersicht
Enum-Konstanten -
Methodenübersicht
Modifikator und TypMethodeBeschreibungstatic Comparator<Priority> Get a comparator that sorts by priority (highest first).static <T> Comparator<T> Get a comparator that sorts objects by their priority (highest first).static Comparator<Object> comparingReversed(Function<Object, Priority> keyExtractor) Get a comparator that sorts objects by priority in reverse (lowest first).intgetValue()Get the numeric value of this priority.static Priorityhighest()Get the priority with the highest precedence (HIGHEST).booleanCheck if this priority is at least as high as another.booleanCheck if this priority is at most as high as another.booleanisHigherThan(Priority other) Check if this priority is higher than another.booleanisLowerThan(Priority other) Check if this priority is lower than another.booleanCheck if this priority is the same as another.static Prioritylowest()Get the priority with the lowest precedence (LOWEST).static Prioritynormal()Get the default priority (NORMAL).static PriorityParse priority from string (case-insensitive).static PriorityParse priority from string with fallback.toString()static PriorityGibt die Enum-Konstante dieser Klasse mit dem angegebenen Namen zurück.static Priority[]values()Gibt ein Array mit den Konstanten dieser Enum-Klasse in der Reihenfolge ihrer Deklaration zurück.
-
Enum-Konstanten - Details
-
HIGHEST
-
HIGH
-
NORMAL
-
LOW
-
LOWEST
-
-
Methodendetails
-
values
Gibt ein Array mit den Konstanten dieser Enum-Klasse in der Reihenfolge ihrer Deklaration zurück.- Gibt zurück:
- ein Array mit den Konstanten dieser Enum-Klasse in der Reihenfolge ihrer Deklaration
-
valueOf
Gibt die Enum-Konstante dieser Klasse mit dem angegebenen Namen zurück. Die Zeichenfolge muss exakt mit einer ID übereinstimmen, mit der eine Enum-Konstante in dieser Klasse deklariert wird. (Zusätzliche Leerzeichen sind nicht zulässig.)- Parameter:
name- Name der zurückzugebenden Enumerationskonstante.- Gibt zurück:
- Enumerationskonstante mit dem angegebenen Namen
- Löst aus:
IllegalArgumentException- wenn diese Enum-Klasse keine Konstante mit dem angegebenen Namen enthältNullPointerException- wenn das Argument nicht angegeben wird
-
comparator
Get a comparator that sorts by priority (highest first). Usage: list.sort(Priority.comparator())- Gibt zurück:
- comparator for sorting by priority
-
comparing
Get a comparator that sorts objects by their priority (highest first). Usage: entrypoints.sort(Priority.comparing(BundleEntrypoint::getPriority))- Parameter:
keyExtractor- function to extract priority from object- Gibt zurück:
- comparator for sorting objects by priority
-
comparingReversed
Get a comparator that sorts objects by priority in reverse (lowest first).- Parameter:
keyExtractor- function to extract priority from object- Gibt zurück:
- reverse comparator for sorting objects by priority
-
highest
Get the priority with the highest precedence (HIGHEST).- Gibt zurück:
- HIGHEST priority
-
lowest
Get the priority with the lowest precedence (LOWEST).- Gibt zurück:
- LOWEST priority
-
normal
-
parse
-
parse
-
getValue
public int getValue()Get the numeric value of this priority. Lower values = higher priority.- Gibt zurück:
- numeric priority value
-
isHigherThan
Check if this priority is higher than another.- Parameter:
other- priority to compare against- Gibt zurück:
- true if this priority is higher (executes first)
-
isLowerThan
Check if this priority is lower than another.- Parameter:
other- priority to compare against- Gibt zurück:
- true if this priority is lower (executes last)
-
isSameAs
Check if this priority is the same as another.- Parameter:
other- priority to compare against- Gibt zurück:
- true if priorities are equal
-
isAtLeast
Check if this priority is at least as high as another.- Parameter:
other- priority to compare against- Gibt zurück:
- true if this >= other
-
isAtMost
Check if this priority is at most as high as another.- Parameter:
other- priority to compare against- Gibt zurück:
- true if this is greater than 'other' priority
-
toString
-