org.chorem.jtimer.entities
Class TimerAlert

java.lang.Object
  extended by org.chorem.jtimer.entities.TimerAlert
All Implemented Interfaces:
Serializable, Cloneable

public class TimerAlert
extends Object
implements Serializable, Cloneable

Alert.

Version:
$Revision: 2677 $ Last update : $Date: 2009-10-15 11:29:00 +0200 (jeu., 15 oct. 2009) $ By : $Author: echatellier $
Author:
chatellier
See Also:
Serialized Form

Nested Class Summary
static class TimerAlert.Type
          Alert type.
 
Field Summary
protected  long duration
          Alert duration.
protected  TimerAlert.Type type
          Alert type.
 
Constructor Summary
TimerAlert()
          Constructor.
TimerAlert(TimerAlert.Type type, long duration)
          Constructor.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

protected TimerAlert.Type type
Alert type.


duration

protected long duration
Alert duration. (in seconds)

Constructor Detail

TimerAlert

public TimerAlert()
Constructor.


TimerAlert

public TimerAlert(TimerAlert.Type type,
                  long duration)
Constructor.

Parameters:
type - type
duration - duration
Method Detail

getType

public TimerAlert.Type getType()
Get alert type.

Returns:
the type

setType

public void setType(TimerAlert.Type type)
Set alert type.

Parameters:
type - the type to set

getDuration

public long getDuration()
Get duration.

Returns:
the duration in seconds

setDuration

public void setDuration(long duration)
Set duration.

Parameters:
duration - the duration to set (in seconds)

clone

public TimerAlert clone()
Overrides:
clone in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2007-2012 CodeLutin. All Rights Reserved.