(String name)
| 103 | } |
| 104 | |
| 105 | public static Switcher remove(String name) { |
| 106 | name = Strings.stripGlyphs(Strings.stripColors(name.replace('_', ' '))).strip().toLowerCase(); |
| 107 | Switcher value; |
| 108 | |
| 109 | if (lobby != null && name.equals(lobby.name)) { |
| 110 | value = lobby; |
| 111 | lobby = null; |
| 112 | |
| 113 | } else { |
| 114 | value = list.remove(name); |
| 115 | ordonedList.remove(value); |
| 116 | } |
| 117 | |
| 118 | return value; |
| 119 | } |
| 120 | |
| 121 | public static Switcher getByName(String name) { |
| 122 | return list.get(Strings.stripGlyphs(Strings.stripColors(name.replace('_', ' '))).strip().toLowerCase()); |
no test coverage detected