Minor code cleanup, add item placeholders to disguises

This commit is contained in:
libraryaddict
2020-01-06 09:28:30 +13:00
parent 54bd979506
commit 0ed798e8e7
9 changed files with 97 additions and 37 deletions

View File

@@ -23,6 +23,20 @@ public class ParamInfoManager {
return paramList;
}
public static String toString(Object object) {
if (object == null) {
return "null";
}
ParamInfo info = getParamInfo(object.getClass());
if (info == null) {
throw new IllegalArgumentException(object.getClass() + " is not handled by ParamInfo!");
}
return info.toString(object);
}
public static ParamInfo getParamInfo(Class c) {
for (ParamInfo info : getParamInfos()) {
if (!info.isParam(c)) {