@Test public void testEquals() throws Exception { Size theSize = new Size(12, 13); Size theSize1 = new Size(12, 13); Size theSize3 = new Size(24, 255); Size theSize4 = new Size(25, 255); assertEquals(theSize, theSize); assertEquals(theSize, theSize1); assertNotEquals(theSize, theSize3); assertNotEquals(theSize, null); assertNotEquals(theSize, "lala"); assertNotEquals(theSize3, theSize4); }
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Size size = (Size) o; if (height != size.height) return false; return width == size.width; }
Size implements Reflectable<SizeClassInformation>, Distributable { @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Size size = (Size) o; if (height != size.height) return false; return width == size.width; } }
Size implements Reflectable<SizeClassInformation>, Distributable { @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Size size = (Size) o; if (height != size.height) return false; return width == size.width; } Size();  Size(int aWidth, int aHeight); }
Size implements Reflectable<SizeClassInformation>, Distributable { @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Size size = (Size) o; if (height != size.height) return false; return width == size.width; } 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 boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Size size = (Size) o; if (height != size.height) return false; return width == size.width; } 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; }