Bullet cleanup

This commit is contained in:
Anuken
2020-07-11 09:08:17 -04:00
parent a8d5198ca6
commit 0752076bf2
32 changed files with 590 additions and 525 deletions

View File

@@ -47,6 +47,11 @@ public class JsonIO{
return json.toJson(object, object.getClass());
}
public static <T> T copy(T object, T dest){
json.copyFields(object, dest);
return dest;
}
public static <T> T copy(T object){
return read((Class<T>)object.getClass(), write(object));
}