Added default constructor and javadoc.

This commit is contained in:
Erik C. Thauvin 2019-04-27 02:55:00 -07:00
parent 5417bc1717
commit 063e23358b

View file

@ -52,7 +52,7 @@ public class Message {
* Creates a new message.
*/
public Message() {
// This constructor is intentionally empty.
}
/**
@ -101,15 +101,6 @@ public class Message {
return color;
}
/**
* Set the color.
*
* @param color The new color.
*/
public void setColor(final String color) {
this.color = color;
}
/**
* Returns the message.
*
@ -119,15 +110,6 @@ public class Message {
return msg;
}
/**
* Sets the message.
*
* @param message The new message.
*/
public void setMessage(final String message) {
msg = message;
}
/**
* Returns the message error flag.
*
@ -137,15 +119,6 @@ public class Message {
return isError;
}
/**
* Sets the message error flag.
*
* @param error The error flag.
*/
public void setError(final boolean error) {
isError = error;
}
/**
* Returns the message notice flag.
*
@ -155,15 +128,6 @@ public class Message {
return isNotice;
}
/**
* Sets the message notice flag.
*
* @param isNotice The notice flag.
*/
public void setNotice(final boolean isNotice) {
this.isNotice = isNotice;
}
/**
* Returns the message private flag.
*
@ -173,6 +137,42 @@ public class Message {
return isPrivate;
}
/**
* Set the color.
*
* @param color The new color.
*/
public void setColor(final String color) {
this.color = color;
}
/**
* Sets the message error flag.
*
* @param error The error flag.
*/
public void setError(final boolean error) {
isError = error;
}
/**
* Sets the message.
*
* @param message The new message.
*/
public void setMessage(final String message) {
msg = message;
}
/**
* Sets the message notice flag.
*
* @param isNotice The notice flag.
*/
public void setNotice(final boolean isNotice) {
this.isNotice = isNotice;
}
/**
* Sets the message private flag.
*