26 lines
307 B
Java
Raw Normal View History

2014-08-17 14:42:10 +03:00
package com.iluwatar;
public enum Visibility {
VISIBLE, INVISIBLE;
2014-08-17 14:42:10 +03:00
@Override
public String toString() {
2014-08-17 14:42:10 +03:00
String s = "";
2014-08-17 14:42:10 +03:00
switch (this) {
case INVISIBLE:
s = "invisible";
break;
case VISIBLE:
s = "visible";
break;
default:
break;
2014-08-17 14:42:10 +03:00
}
return s;
}
}