@Test public void doubleToIntTest() { int microdegrees = CoordinatesUtil.degreesToMicrodegrees(DEGREES); Assert.assertEquals(MICRO_DEGREES, microdegrees); }
public static int degreesToMicrodegrees(double coordinate) { return (int) (coordinate * CONVERSION_FACTOR); }
CoordinatesUtil { public static int degreesToMicrodegrees(double coordinate) { return (int) (coordinate * CONVERSION_FACTOR); } }
CoordinatesUtil { public static int degreesToMicrodegrees(double coordinate) { return (int) (coordinate * CONVERSION_FACTOR); } private  CoordinatesUtil(); }
CoordinatesUtil { public static int degreesToMicrodegrees(double coordinate) { return (int) (coordinate * CONVERSION_FACTOR); } private  CoordinatesUtil(); static int degreesToMicrodegrees(double coordinate); static double microdegreesToDegrees(int coordinate); static double[] parseCoordinateString(String coordinatesString, int numberOfCoordinates); static void validateLatitude(double latitude); static void validateLongitude(double longitude); }
CoordinatesUtil { public static int degreesToMicrodegrees(double coordinate) { return (int) (coordinate * CONVERSION_FACTOR); } private  CoordinatesUtil(); static int degreesToMicrodegrees(double coordinate); static double microdegreesToDegrees(int coordinate); static double[] parseCoordinateString(String coordinatesString, int numberOfCoordinates); static void validateLatitude(double latitude); static void validateLongitude(double longitude); static final double LATITUDE_MAX; static final double LATITUDE_MIN; static final double LONGITUDE_MAX; static final double LONGITUDE_MIN; }