Add SWCommandUtils.addMapper
Dieser Commit ist enthalten in:
Ursprung
a4d0f528f8
Commit
3d5ae19863
@ -131,4 +131,9 @@ class SWCommandUtils {
|
||||
}
|
||||
}
|
||||
|
||||
public static <K> void addMapper(Class<K> clazz, Function<String, K> mapper) {
|
||||
if (MAPPER_FUNCTIONS.containsKey(clazz)) return;
|
||||
MAPPER_FUNCTIONS.put(clazz, mapper);
|
||||
}
|
||||
|
||||
}
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren