@Test public void testSerialize() throws Exception { Size theSize = new Size(15, 28); Map<String, Object> theData = theSize.serialize(); assertEquals(2, theData.size()); assertEquals("15", theData.get("width")); assertEquals("28", theData.get("height")); }
@Override public Map<String, Object> serialize() { Map<String, Object> theResult = new HashMap<>(); theResult.put("width", Integer.toString(width)); theResult.put("height", Integer.toString(height)); return theResult; }
Size implements Reflectable<SizeClassInformation>, Distributable { @Override public Map<String, Object> serialize() { Map<String, Object> theResult = new HashMap<>(); theResult.put("width", Integer.toString(width)); theResult.put("height", Integer.toString(height)); return theResult; } }
Size implements Reflectable<SizeClassInformation>, Distributable { @Override public Map<String, Object> serialize() { Map<String, Object> theResult = new HashMap<>(); theResult.put("width", Integer.toString(width)); theResult.put("height", Integer.toString(height)); return theResult; } Size();  Size(int aWidth, int aHeight); }
Size implements Reflectable<SizeClassInformation>, Distributable { @Override public Map<String, Object> serialize() { Map<String, Object> theResult = new HashMap<>(); theResult.put("width", Integer.toString(width)); theResult.put("height", Integer.toString(height)); return theResult; } 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 { @Override public Map<String, Object> serialize() { Map<String, Object> theResult = new HashMap<>(); theResult.put("width", Integer.toString(width)); theResult.put("height", Integer.toString(height)); return theResult; } 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; }