Added default constructor and javadoc.
This commit is contained in:
parent
5417bc1717
commit
063e23358b
1 changed files with 37 additions and 37 deletions
|
@ -52,7 +52,7 @@ public class Message {
|
||||||
* Creates a new message.
|
* Creates a new message.
|
||||||
*/
|
*/
|
||||||
public Message() {
|
public Message() {
|
||||||
|
// This constructor is intentionally empty.
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -101,15 +101,6 @@ public class Message {
|
||||||
return color;
|
return color;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Set the color.
|
|
||||||
*
|
|
||||||
* @param color The new color.
|
|
||||||
*/
|
|
||||||
public void setColor(final String color) {
|
|
||||||
this.color = color;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the message.
|
* Returns the message.
|
||||||
*
|
*
|
||||||
|
@ -119,15 +110,6 @@ public class Message {
|
||||||
return msg;
|
return msg;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the message.
|
|
||||||
*
|
|
||||||
* @param message The new message.
|
|
||||||
*/
|
|
||||||
public void setMessage(final String message) {
|
|
||||||
msg = message;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the message error flag.
|
* Returns the message error flag.
|
||||||
*
|
*
|
||||||
|
@ -137,15 +119,6 @@ public class Message {
|
||||||
return isError;
|
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.
|
* Returns the message notice flag.
|
||||||
*
|
*
|
||||||
|
@ -155,15 +128,6 @@ public class Message {
|
||||||
return isNotice;
|
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.
|
* Returns the message private flag.
|
||||||
*
|
*
|
||||||
|
@ -173,6 +137,42 @@ public class Message {
|
||||||
return isPrivate;
|
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.
|
* Sets the message private flag.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue