added command sample
This commit is contained in:
26
command/src/main/java/com/iluwatar/Visibility.java
Normal file
26
command/src/main/java/com/iluwatar/Visibility.java
Normal file
@ -0,0 +1,26 @@
|
||||
package com.iluwatar;
|
||||
|
||||
public enum Visibility {
|
||||
|
||||
VISIBLE,
|
||||
INVISIBLE;
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
|
||||
String s = "";
|
||||
|
||||
switch (this) {
|
||||
case INVISIBLE:
|
||||
s = "invisible";
|
||||
break;
|
||||
case VISIBLE:
|
||||
s = "visible";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
||||
}
|
||||
return s;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user