@Test public void testDeserialize() throws Exception { Map<String, Object> theData = new HashMap<>(); theData.put("width", "28"); theData.put("height", "15"); Size theSize = Size.deserialize(theData); assertEquals(28, theSize.width); assertEquals(15, theSize.height); }
public static Size deserialize(Map<String, Object> aSerializedStructure) { int theWidth = Integer.valueOf((String) aSerializedStructure.get("width")); int theHeight = Integer.valueOf((String) aSerializedStructure.get("height")); return new Size(theWidth, theHeight); }
Size implements Reflectable<SizeClassInformation>, Distributable { public static Size deserialize(Map<String, Object> aSerializedStructure) { int theWidth = Integer.valueOf((String) aSerializedStructure.get("width")); int theHeight = Integer.valueOf((String) aSerializedStructure.get("height")); return new Size(theWidth, theHeight); } }
Size implements Reflectable<SizeClassInformation>, Distributable { public static Size deserialize(Map<String, Object> aSerializedStructure) { int theWidth = Integer.valueOf((String) aSerializedStructure.get("width")); int theHeight = Integer.valueOf((String) aSerializedStructure.get("height")); return new Size(theWidth, theHeight); } Size();  Size(int aWidth, int aHeight); }
Size implements Reflectable<SizeClassInformation>, Distributable { public static Size deserialize(Map<String, Object> aSerializedStructure) { int theWidth = Integer.valueOf((String) aSerializedStructure.get("width")); int theHeight = Integer.valueOf((String) aSerializedStructure.get("height")); return new Size(theWidth, theHeight); } Size();  Size(int aWidth, int aHeight); @Override SizeClassInformation getClassInformation(); @ReflectiveMethod Size changeWidth(int aNewWidth); @ReflectiveMethod Size changeHeight(int aNewHeight); @Override boolean equals(Object o); @Override int hashCode(); @Override Map<String, Object> serialize(); static Size deserialize(Map<String, Object> aSerializedStructure); }
Size implements Reflectable<SizeClassInformation>, Distributable { public static Size deserialize(Map<String, Object> aSerializedStructure) { int theWidth = Integer.valueOf((String) aSerializedStructure.get("width")); int theHeight = Integer.valueOf((String) aSerializedStructure.get("height")); return new Size(theWidth, theHeight); } Size();  Size(int aWidth, int aHeight); @Override SizeClassInformation getClassInformation(); @ReflectiveMethod Size changeWidth(int aNewWidth); @ReflectiveMethod Size changeHeight(int aNewHeight); @Override boolean equals(Object o); @Override int hashCode(); @Override Map<String, Object> serialize(); static Size deserialize(Map<String, Object> aSerializedStructure); @ReflectiveField
    final int width; @ReflectiveField
    final int height; }