The Timer Class contains the following constructors:
Timer(long p)
Timer(long p, int id)
Timer(long p, boolean r)
Timer(long p, int id, boolean r)
Timer(TimerListener defaultListener, long p)
Timer(TimerListener defaultListener, long p, int id)
Timer(TimerListener defaultListener, long p, boolean r)
Timer(TimerListener defaultListener, long p, int id, boolean r)
Timer(TaskManager tm, long p)
Timer(TaskManager tm, long p, int id)
Timer(TaskManager tm, long p, boolean r)
Timer(TaskManager tm, long p, int id, boolean r)
Timer(TaskManager tm, TimerListener defaultListener, long p)
Timer(TaskManager tm, TimerListener defaultListener, long p, int id)
Timer(TaskManager tm, TimerListener defaultListener, long p, boolean r)
Timer(TaskManager tm, TimerListener defaultListener, long p, int id, boolean r)
Constructs a one-shot timer with the specified period (in milliseconds).
public Timer(long p);
p | The initial period of the timer. |
Constructs a one-shot timer with a specific period (in milliseconds) and that includes a user-defined identifier.
public Timer(long p, int id);
p | The initial period of the timer. |
id | The user-defined identifier of the timer. |
Constructs a one-shot or repeating timer with the specified period (in milliseconds).
public Timer(long p, boolean r);
p | The initial period of the timer. |
r | Set to true if the timer is a repeating timer or false if it is a one-shot timer. |
Constructs a one-shot or repeating timer with the specified period (in milliseconds).
public Timer(long p, int id, boolean r);
p | The initial period of the timer. |
id | The user-defined identifier for the timer. |
r | Set to true if the timer is a repeating timer; set to false if it is a one-shot timer. |
Constructs a one-shot timer with the specified period (in milliseconds) and that includes a default listener.
public Timer(TimerListener defaultListener, long p);
defaultListener | The initial listener to add to the timer. |
p | The initial period of the timer. |
Constructs a one-shot timer with the specified period (in milliseconds) and listener.
public Timer(TimerListener defaultListener, long p, int id);
defaultListener | The initial listener to add to the timer. |
p | The initial period of the timer. |
id | The user-defined identifier of the timer. |
Constructs a one-shot or repeating timer with the specified period (in milliseconds) and that includes a default listener.
public Timer(TimerListener defaultListener, long p, boolean r);
defaultListener | The initial listener to add to the timer. |
p | The initial period of the timer. |
r | Set to true if the timer is a repeating timer; set to false if it is a one-shot timer. |
Constructs a one-shot or repeating timer with the specified period (in milliseconds) and a default listener.
public Timer(TimerListener defaultListener, long p, int id, boolean r);
defaultListener | An initial listener to add to the timer. |
id | A user-defined identifier for the listener. |
p | The initial period of the timer. |
r | Set to true if the timer is a repeating timer; set to false if it is a one-shot timer. |
Constructs a one-shot timer with the specified period.
public Timer(TaskManager tm, long p);
tm | The TaskManager that is to service this Timer. |
p | The initial period of the timer (in milliseconds). |
Constructs a one-shot timer with a specific period and that includes a user-defined identifier.
public Timer(TaskManager tm, long p, int id);
tm | The TaskManager that is to service this Timer. |
p | The initial period of the timer (in milliseconds). |
id | The user-defined identifier of the timer. |
Constructs a one-shot or repeating timer with the specified period.
public Timer(TaskManager tm, long p, boolean r);
tm | The task manager that is to service this timer. |
p | The initial period of the timer (in milliseconds). |
r | Set to true if the timer is a repeating timer or false if it is a one-shot timer. |
Constructs a one-shot or repeating timer with the specified period.
public Timer(TaskManager tm, long p, int id, boolean r);
tm | The task manager that is to service this timer. |
p | The initial period of the timer (in milliseconds). |
id | The user-defined identifier for the timer. |
r | Set to true if the timer is a repeating timer; set to false if it is a one-shot timer. |
Constructs a one-shot timer with the specified period and that includes a default listener.
public Timer(TaskManager tm, TimerListener defaultListener, long p);
tm | The task manager that is to service this timer. |
defaultListener | The initial listener to add to the timer. |
p | The initial period of the timer. |
Constructs a one-shot timer with the specified period and listener.
public Timer(TaskManager tm, TimerListener defaultListener, long p, int id);
tm | The task manager that is to service this timer. |
defaultListener | The initial listener to add to the timer. |
p | The initial period of the timer. |
id | The user-defined identifier of the timer. |
Constructs a one-shot or repeating timer with the specified period and that includes a default listener.
public Timer(TaskManager tm, TimerListener defaultListener, long p, boolean r);
tm | The task manager that is to service this timer. |
defaultListener | The initial listener to add to the timer. |
p | The initial period of the timer. |
r | Set to true if the timer is a repeating timer; set to false if it is a one-shot timer. |
Constructs a one-shot or repeating timer with the specified period and a default listener.
public Timer(TaskManager tm, TimerListener defaultListener, long p, int id, boolean r);
tm | The task manager that is to service this timer. |
defaultListener | An initial listener to add to the timer. |
id | A user-defined identifier for the listener. |
p | The initial period of the timer. |
r | Set to true if the timer is a repeating timer; set to false if it is a one-shot timer. |