(@Nullable String text)
| 37 | } |
| 38 | |
| 39 | public static @Nullable WindowType fromString(@Nullable String text) { |
| 40 | if (text != null) { |
| 41 | for (WindowType b : WindowType.values()) { |
| 42 | if (text.equalsIgnoreCase(b.text)) { |
| 43 | return b; |
| 44 | } |
| 45 | } |
| 46 | } |
| 47 | return null; |
| 48 | } |
| 49 | } |