public class TimerAlert extends Object implements Serializable, Cloneable
Modifier and Type | Class and Description |
---|---|
static class |
TimerAlert.Type
Alert type.
|
Modifier and Type | Field and Description |
---|---|
protected long |
duration
Alert duration.
|
protected TimerAlert.Type |
type
Alert type.
|
Constructor and Description |
---|
TimerAlert()
Constructor.
|
TimerAlert(TimerAlert.Type type,
long duration)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
TimerAlert |
clone() |
boolean |
equals(Object obj) |
long |
getDuration()
Get duration.
|
TimerAlert.Type |
getType()
Get alert type.
|
int |
hashCode() |
void |
setDuration(long duration)
Set duration.
|
void |
setType(TimerAlert.Type type)
Set alert type.
|
protected TimerAlert.Type type
protected long duration
public TimerAlert()
public TimerAlert(TimerAlert.Type type, long duration)
type
- typeduration
- duration (ms)public TimerAlert.Type getType()
public void setType(TimerAlert.Type type)
type
- the type to setpublic long getDuration()
public void setDuration(long duration)
duration
- the duration to set (in seconds)public TimerAlert clone()
Copyright © 2007–2013 CodeLutin. All rights reserved.