Angle implements AttributeValue { public static Angle deg(final double degs) { return new Angle(degs, Angle.Unit.DEG); } Angle(final double value, final Unit unit); static Angle deg(final double degs); static Angle grad(final double grads); static Angle rad(final double rads); @Override String toString(); @Override String getValue(); static final Angle NO_ROTATING; static final Angle ROTATE_90; static final Angle ROTATE_180; static final Angle ROTATE_270; }
@Test public void testDeg() { final Angle r = Angle.deg(10); Assert.assertEquals("10", r.toString()); }