lcanals.tc.core
Class Break

java.lang.Object
  |
  +--lcanals.tc.core.Break
All Implemented Interfaces:
java.io.Serializable

public class Break
extends java.lang.Object
implements java.io.Serializable

Description of a break

Author:
www.lfcanals.es.org
See Also:
Serialized Form

Constructor Summary
Break()
          Builds an empty break description
 
Method Summary
 java.lang.String getDescription()
          Returnjs the desciprtion, null if none has been said about this break.
 long getEndTime()
          Returns the milliseconds when the break was ended, -1 if no value has been set.
 long getStartTime()
          Returns the milliseconds when the break was started, -1 if no value has been set.
 void setDescription(java.lang.String description)
          Sets the description.
 void setEndTime(long time)
          Sets the time (in millisecons from 1-1-1970) when the break has been started
 void setStartTime(long time)
          Sets the time (in millisecons from 1-1-1970) when the break has been started
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Break

public Break()
Builds an empty break description
Method Detail

getStartTime

public long getStartTime()
Returns the milliseconds when the break was started, -1 if no value has been set.

getEndTime

public long getEndTime()
Returns the milliseconds when the break was ended, -1 if no value has been set.

getDescription

public java.lang.String getDescription()
Returnjs the desciprtion, null if none has been said about this break.

setStartTime

public void setStartTime(long time)
Sets the time (in millisecons from 1-1-1970) when the break has been started
Throws:
IllegalStateException - if it's called for more than one time

setEndTime

public void setEndTime(long time)
Sets the time (in millisecons from 1-1-1970) when the break has been started
Throws:
IllegalStateException - if it's called for more than one time

setDescription

public void setDescription(java.lang.String description)
Sets the description. No limitations here.


Luis F. Canals. Supported by www.sourceforge.net