Changed JavaDoc DictionaryEntry #52

This commit is contained in:
law39 2020-05-01 14:34:43 +01:00
parent 232a629fe2
commit 800c1445e7

View file

@ -68,17 +68,19 @@ public class DictionaryEntry {
// ////////////////////// // // ////////////////////// //
/** /**
* Getter method for the 'english variable'. * Method which returns a string containing the english instance variable value.
* * Standard getter.
* @return Current value of 'english'. * <p>
* @return String Current value of 'english'.
*/ */
public String getEnglish() { public String getEnglish() {
return english; return english;
} }
/** /**
* Setter for the 'english' variable. * Method which sets the english instance variable value to the passed in String.
* * Standard setter.
* <p>
* @param english New String value for 'english'. * @param english New String value for 'english'.
*/ */
public void setEnglish(String english) { public void setEnglish(String english) {
@ -86,17 +88,19 @@ public class DictionaryEntry {
} }
/** /**
* Getter for the 'welsh' variable. * Method which returns a string containing the welsh instance variable value.
* * Standard getter.
* @return Current value of 'welsh'. * <p>
* @return String Current value of 'welsh'.
*/ */
public String getWelsh() { public String getWelsh() {
return welsh; return welsh;
} }
/** /**
* Setter for the 'welsh' variable. * Method which sets the welsh instance variable value to the passed in String.
* * Standard setter.
* <p>
* @param welsh New String value for 'welsh'. * @param welsh New String value for 'welsh'.
*/ */
public void setWelsh(String welsh) { public void setWelsh(String welsh) {
@ -104,9 +108,10 @@ public class DictionaryEntry {
} }
/** /**
* Getter for the 'wordType' enum variable. * Method which returns a wordTypeEnum enumeration containing the wordType instance variable value.
* * Standard getter.
* @return Current value of the 'wordType'. * <p>
* @return wordTypeEnum Current value of the 'wordType'.
* @see wordTypeEnum * @see wordTypeEnum
*/ */
public wordTypeEnum getWordType() { public wordTypeEnum getWordType() {
@ -114,8 +119,9 @@ public class DictionaryEntry {
} }
/** /**
* Setter for the 'wordType' enum variable. * Method which sets the wordType instance variable value to the passed in wordTypeEnum enumeration.
* * Standard setter.
* <p>
* @param wordType New wordTypeEnum value for the 'wordType'. * @param wordType New wordTypeEnum value for the 'wordType'.
* @see wordTypeEnum * @see wordTypeEnum
*/ */
@ -124,17 +130,19 @@ public class DictionaryEntry {
} }
/** /**
* Getter for the 'practiceWord' variable. * Method which returns a boolean containing the practiceWord instance variable value.
* * Standard getter.
* @return Current value of 'practiceWord' * <p>
* @return Boolean Current value of 'practiceWord'
*/ */
public Boolean isPracticeWord() { public Boolean isPracticeWord() {
return practiceWord; return practiceWord;
} }
/** /**
* Setter for the 'practiceWord' variable. * Method which sets the practiceWord instance variable value to the passed in Boolean.
* * Standard setter.
* <p>
* @param practiceWord New boolean value for 'practiceWord'. * @param practiceWord New boolean value for 'practiceWord'.
*/ */
public void setPracticeWord(Boolean practiceWord) { public void setPracticeWord(Boolean practiceWord) {
@ -146,9 +154,9 @@ public class DictionaryEntry {
// //////// // // //////// //
/** /**
* Overidden equals method that checks to see if two Dictionary objects are equal to each other. This work by checking if the objects 'english' or 'welsh' variables are * Overridden equals method that checks to see if two Dictionary objects are equal to each other. This works by checking if the objects 'english' or 'welsh' variables are
* equal with the same 'wordType'. * equal with the same 'wordType'.
* * <p>
* @param entry Object that the DictionaryEntry object is comparing itself to. * @param entry Object that the DictionaryEntry object is comparing itself to.
* @return Returns true (if equal) or false (not equal). * @return Returns true (if equal) or false (not equal).
*/ */