@Test public void testResetToZero() { Angle theAngle = new Angle(19); Angle theZero = theAngle.resetToZero(); assertNotSame(theAngle, theZero); assertEquals(0, theZero.get(), 0); }
@ReflectiveMethod public Angle resetToZero() { return new Angle(0); }
Angle implements Reflectable, Distributable { @ReflectiveMethod public Angle resetToZero() { return new Angle(0); } }
Angle implements Reflectable, Distributable { @ReflectiveMethod public Angle resetToZero() { return new Angle(0); } Angle(int aAngleInDegrees); }
Angle implements Reflectable, Distributable { @ReflectiveMethod public Angle resetToZero() { return new Angle(0); } Angle(int aAngleInDegrees); Integer get(); @ReflectiveMethod Angle add(int aDiff); @ReflectiveMethod Angle invert(); @ReflectiveMethod Angle snapTo(int aStep); @ReflectiveMethod Angle resetToZero(); float toRadians(); @Override boolean equals(Object o); @Override int hashCode(); @Override AngleClassInformation getClassInformation(); @Override Map<String, Object> serialize(); static Angle deserialize(Map<String, Object> aSerializedData); static Angle fromRadians(float aAngleInRadians); }
Angle implements Reflectable, Distributable { @ReflectiveMethod public Angle resetToZero() { return new Angle(0); } Angle(int aAngleInDegrees); Integer get(); @ReflectiveMethod Angle add(int aDiff); @ReflectiveMethod Angle invert(); @ReflectiveMethod Angle snapTo(int aStep); @ReflectiveMethod Angle resetToZero(); float toRadians(); @Override boolean equals(Object o); @Override int hashCode(); @Override AngleClassInformation getClassInformation(); @Override Map<String, Object> serialize(); static Angle deserialize(Map<String, Object> aSerializedData); static Angle fromRadians(float aAngleInRadians); final int angleInDegrees; static final Angle ZERO; }