mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 19:41:59 -08:00
introduced StringUtil class with .isEmpty(String input) and .isNotEmpty(String input), to replace str != null && str.length()>0 statements
This commit is contained in:
parent
fb15c79964
commit
f1cf9e7adb
47 changed files with 132 additions and 96 deletions
|
|
@ -45,7 +45,17 @@ public class ChatMessage implements Serializable {
|
|||
private MessageType messageType;
|
||||
|
||||
public enum MessageColor {
|
||||
BLACK, RED, GREEN, BLUE, ORANGE, YELLOW;
|
||||
BLACK("Black"), RED("Red"), GREEN("Green"), BLUE("Blue"), ORANGE("Orange"), YELLOW("Yellow");
|
||||
|
||||
private String color;
|
||||
|
||||
MessageColor(String t){
|
||||
color = t;
|
||||
}
|
||||
|
||||
public String toString(){
|
||||
return color;
|
||||
}
|
||||
}
|
||||
|
||||
public enum MessageType {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue