public interface Prioritized extends Comparable<Prioritized>
Prioritized interface can be implemented by objects that
should be sorted, for example the tasks in executable queue.| Modifier and Type | Field and Description |
|---|---|
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
|
| Modifier and Type | Method and Description |
|---|---|
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 in interface Comparable<Prioritized>Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.