@Test public void testHashCode() { Color theColor1 = new Color(1,2,3); Color theColor2 = new Color(1,2,4); assertTrue(theColor1.hashCode() == theColor2.hashCode()); assertFalse(theColor1.hashCode() == Color.WHITE.hashCode()); }
@Override public int hashCode() { return r; }
Color implements Reflectable<ColorClassInformation>, Distributable { @Override public int hashCode() { return r; } }
Color implements Reflectable<ColorClassInformation>, Distributable { @Override public int hashCode() { return r; } Color(int aR, int aG, int aB); }
Color implements Reflectable<ColorClassInformation>, Distributable { @Override public int hashCode() { return r; } Color(int aR, int aG, int aB); @Override boolean equals(Object o); @Override int hashCode(); @Override ColorClassInformation getClassInformation(); @Override Map<String, Object> serialize(); static Color deserialize(Map<String, Object> aSerializedData); }
Color implements Reflectable<ColorClassInformation>, Distributable { @Override public int hashCode() { return r; } Color(int aR, int aG, int aB); @Override boolean equals(Object o); @Override int hashCode(); @Override ColorClassInformation getClassInformation(); @Override Map<String, Object> serialize(); static Color deserialize(Map<String, Object> aSerializedData); static final Color WHITE; static final Color BLACK; static final Color RED; static final Color YELLOW; @ReflectiveField
    final int r; @ReflectiveField
    final int g; @ReflectiveField
    final int b; }