lcanals.tc.model
Class TaskBean

java.lang.Object
  |
  +--lcanals.tc.model.TaskBean
All Implemented Interfaces:
java.io.Serializable, Task

public class TaskBean
extends java.lang.Object
implements Task, java.io.Serializable

Task data, inserted by the user.

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

Constructor Summary
TaskBean(int id, int difficulty, int risk, java.lang.String description)
          Builds a new task, according to the immutable pattern
 
Method Summary
 boolean equals(java.lang.Object other)
          True if and only if the Tasks have the same id
 java.lang.String getDescription()
           
 int getDifficulty()
           
 int getId()
           
 int getRisk()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaskBean

public TaskBean(int id,
                int difficulty,
                int risk,
                java.lang.String description)
Builds a new task, according to the immutable pattern
Method Detail

getId

public int getId()
Specified by:
getId in interface Task

getDifficulty

public int getDifficulty()
Specified by:
getDifficulty in interface Task

getRisk

public int getRisk()
Specified by:
getRisk in interface Task

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface Task

equals

public boolean equals(java.lang.Object other)
Description copied from interface: Task
True if and only if the Tasks have the same id
Specified by:
equals in interface Task
Overrides:
equals in class java.lang.Object


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