12
0

Add SWCommandUtils.addMapper

Dieser Commit ist enthalten in:
yoyosource 2021-03-12 17:26:39 +01:00
Ursprung a4d0f528f8
Commit 3d5ae19863

Datei anzeigen

@ -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);
}
}