diff --git a/buisnesslogic/src/main/java/com/plannaplan/entities/Lecturer.java b/buisnesslogic/src/main/java/com/plannaplan/entities/Lecturer.java index 3ce0723..013085b 100755 --- a/buisnesslogic/src/main/java/com/plannaplan/entities/Lecturer.java +++ b/buisnesslogic/src/main/java/com/plannaplan/entities/Lecturer.java @@ -18,30 +18,14 @@ public class Lecturer { private String name; private String surname; - public String getTitle() { - return title; - } - - public String getSurname() { - return surname; - } - - public void setSurname(String surname) { - this.surname = surname; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public void setTitle(String title) { - this.title = title; - } + /** + * Lecturer + * + * @param title title given to the lecturer + * @param name name given to the lecturer + * @param surname surname given to the lecturer + */ public Lecturer(String title, String name, String surname) { this.title = title; this.name = name; @@ -51,9 +35,63 @@ public class Lecturer { public Lecturer() { } + /** + * getTitle + * @return title + * + */ + public String getTitle() { + return title; + } + + /** + * getSurname + * @return surname + * + */ + public String getSurname() { + return surname; + } + + /** + * setSurname + * @param set surname to the lecturer + * + */ + public void setSurname(String surname) { + this.surname = surname; + } + + /** + * getName + * @return name + * + */ + public String getName() { + return name; + } + + /** + * setName + * @param set name to the lecturer + * + */ + public void setName(String name) { + this.name = name; + } + + /** + * setTitle + * @param title + * + */ + public void setTitle(String title) { + this.title = title; + } + @Override public String toString() { return String.format("%s %s %s", this.title, this.name, this.surname); } -} \ No newline at end of file +}