T - the type the scheduler handlespublic class Scheduler<T> extends Object implements Iterable<T>
| Modifier and Type | Field and Description |
|---|---|
static Integer |
ALWAYS_FIRST_POSITION |
static Integer |
ALWAYS_LAST_POSITION |
static Integer |
DEFAULT_POSITION |
| Constructor and Description |
|---|
Scheduler() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(T obj,
Integer position) |
List<T> |
getByNaturalOrderForPosition(Integer position) |
List<T> |
getByReverseOrderForPosition(Integer position) |
SortedSet<Integer> |
getNaturalOrderPositions() |
SortedSet<Integer> |
getReverseOrderPositions() |
Iterator<T> |
iterator() |
void |
remove(T obj) |
Iterator<T> |
reverseIterator() |
int |
size() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorCopyright © 2006-2016 Bitronix Software. All Rights Reserved.