public interface Prioritized extends Comparable<Prioritized>
Prioritized interface can be implemented by objects that
should be sorted, for example the tasks in executable queue.| 限定符和类型 | 字段和说明 |
|---|---|
static Comparator<Object> |
COMPARATOR
The
Comparator of Prioritized |
static int |
MAX_PRIORITY
The maximum priority
|
static int |
MIN_PRIORITY
The minimum priority
|
static int |
NORMAL_PRIORITY
Normal Priority
|
| 限定符和类型 | 方法和说明 |
|---|---|
default int |
compareTo(Prioritized that) |
default int |
getPriority()
Get the priority
|
static final Comparator<Object> COMPARATOR
Comparator of Prioritizedstatic final int MAX_PRIORITY
static final int MIN_PRIORITY
static final int NORMAL_PRIORITY
default int getPriority()
NORMAL_PRIORITYdefault int compareTo(Prioritized that)
compareTo 在接口中 Comparable<Prioritized>Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.