@Test public void testChangeHeight() throws Exception { Size theSize = new Size(10, 20); Size theMutated = theSize.changeHeight(30); assertNotSame(theSize, theMutated); assertEquals(10, theMutated.width); assertEquals(30, theMutated.height); }
@ReflectiveMethod public Size changeHeight(int aNewHeight) { return new Size(width, aNewHeight); }
Size implements Reflectable<SizeClassInformation>, Distributable { @ReflectiveMethod public Size changeHeight(int aNewHeight) { return new Size(width, aNewHeight); } }
Size implements Reflectable<SizeClassInformation>, Distributable { @ReflectiveMethod public Size changeHeight(int aNewHeight) { return new Size(width, aNewHeight); } Size();  Size(int aWidth, int aHeight); }
Size implements Reflectable<SizeClassInformation>, Distributable { @ReflectiveMethod public Size changeHeight(int aNewHeight) { return new Size(width, aNewHeight); } 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 { @ReflectiveMethod public Size changeHeight(int aNewHeight) { return new Size(width, aNewHeight); } 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; }