public class EventTask extends Object implements Comparable
Constructor and Description |
---|
EventTask(int priority,
Runnable runnable) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object o) |
int |
getPriority() |
Runnable |
getRunnable() |
static EventTask |
newInstance(int priority,
Runnable runnable) |
static EventTask |
newInstance(Runnable runnable) |
void |
setPriority(int priority) |
void |
setRunnable(Runnable runnable) |
public EventTask(int priority, Runnable runnable)
public int getPriority()
public void setPriority(int priority)
public Runnable getRunnable()
public void setRunnable(Runnable runnable)
public int compareTo(Object o)
compareTo
in interface Comparable
Copyright © 2020 Voovan. All rights reserved.