public interface Prioritized extends Comparable<Prioritized>
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_PRIORITY
The maximum priority
|
static int |
MIN_PRIORITY
The minimum priority
|
static int |
NORMAL_PRIORITY
Normal Priority
|
| Modifier and Type | Method and Description |
|---|---|
default int |
compareTo(Prioritized that)
数字越大排序越靠前
|
default int |
getPriority()
Get the priority
|
static final int MAX_PRIORITY
static final int MIN_PRIORITY
static final int NORMAL_PRIORITY
default int getPriority()
NORMAL_PRIORITYdefault int compareTo(Prioritized that)
compareTo in interface Comparable<Prioritized>Copyright © 2023. All rights reserved.