@Test public void testNewRobotState() { Point2D.Double botLocation = newLocation(312, 939); RobotState state = RobotState.newBuilder() .setLocation(botLocation) .setHeading(2.1) .setVelocity(7.5) .setTime(39L) .setInterpolated(true) .build(); assertEquals(botLocation, state.location); assertEquals(2.1, state.heading, 0.001); assertEquals(7.5, state.velocity, 0.001); assertEquals(39L, state.time); assertTrue(state.interpolated); }
public static Builder newBuilder() { return new Builder(); }
RobotState { public static Builder newBuilder() { return new Builder(); } }
RobotState { public static Builder newBuilder() { return new Builder(); } private  RobotState(Point2D.Double location, double heading, double velocity,
      long time, boolean interpolated); }
RobotState { public static Builder newBuilder() { return new Builder(); } private  RobotState(Point2D.Double location, double heading, double velocity,
      long time, boolean interpolated); List<Point2D.Double> botCorners(); Rectangle2D.Double botRectangle(); List<Line2D.Double> botSides(); static Builder newBuilder(); }
RobotState { public static Builder newBuilder() { return new Builder(); } private  RobotState(Point2D.Double location, double heading, double velocity,
      long time, boolean interpolated); List<Point2D.Double> botCorners(); Rectangle2D.Double botRectangle(); List<Line2D.Double> botSides(); static Builder newBuilder(); final Point2D.Double location; final double heading; final double velocity; final long time; final boolean interpolated; }