From 823f4af218ae861e4ccfbfc07d99481410811d6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Wo=C5=BAniak?= Date: Tue, 1 Dec 2020 20:59:16 +0100 Subject: [PATCH] Added javadocs to Lecturer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcin Woźniak --- .../com/plannaplan/entities/Lecturer.java | 86 +++++++++++++------ 1 file changed, 62 insertions(+), 24 deletions(-) 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 +}