@Test public void testInvert() throws Exception { assertEquals(350, new Angle(10).invert().get().intValue()); }
@ReflectiveMethod public Angle invert() { if (inverted == null) { inverted = new Angle(-angleInDegrees); } return inverted; }
Angle implements Reflectable, Distributable { @ReflectiveMethod public Angle invert() { if (inverted == null) { inverted = new Angle(-angleInDegrees); } return inverted; } }
Angle implements Reflectable, Distributable { @ReflectiveMethod public Angle invert() { if (inverted == null) { inverted = new Angle(-angleInDegrees); } return inverted; } Angle(int aAngleInDegrees); }
Angle implements Reflectable, Distributable { @ReflectiveMethod public Angle invert() { if (inverted == null) { inverted = new Angle(-angleInDegrees); } return inverted; } 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 invert() { if (inverted == null) { inverted = new Angle(-angleInDegrees); } return inverted; } 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; }