Class RequiredTrainingPlan
java.lang.Object
it.unisa.c03.myPersonalTrainer.requiredtrainingplan.bean.RequiredTrainingPlan
- All Implemented Interfaces:
java.io.Serializable
public class RequiredTrainingPlan
extends java.lang.Object
implements java.io.Serializable
account class.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description RequiredTrainingPlan()constructor of the class.RequiredTrainingPlan(java.lang.String newemail, int newrequired)param costructor. -
Method Summary
Modifier and Type Method Description java.lang.StringgetEmail()method for get the email.intgetRequired()method for get the required flag.voidsetEmail(java.lang.String newemail)method for set the email.voidsetRequired(int newrequired)method for set the required flag.java.lang.StringtoString()method to string, to view the information during a stamp.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
RequiredTrainingPlan
public RequiredTrainingPlan()constructor of the class. -
RequiredTrainingPlan
public RequiredTrainingPlan(java.lang.String newemail, int newrequired)param costructor.- Parameters:
newemail- new emailnewrequired- new flag required
-
-
Method Details
-
getEmail
public java.lang.String getEmail()method for get the email.- Returns:
- the email
-
setEmail
public void setEmail(java.lang.String newemail)method for set the email.- Parameters:
newemail- email
-
getRequired
public int getRequired()method for get the required flag.- Returns:
- the password
-
setRequired
public void setRequired(int newrequired)method for set the required flag.- Parameters:
newrequired- training plan required
-
toString
public java.lang.String toString()method to string, to view the information during a stamp.- Overrides:
toStringin classjava.lang.Object
-