@Test public void testJsonNodeToDsrcPosition3D() { ObjectNode node = JsonUtils.newNode(); node.put("lat", 604739946); node.put("long", -1009691905); node.put("elevation", 14843); DsrcPosition3D result = Position3DBuilder.dsrcPosition3D(node); assertEquals(Long.valueOf(604739946), result.getLatitude()); assertEquals(Long.valueOf(-1009691905), result.getLongitude()); assertEquals(Long.valueOf(14843), result.getElevation()); }
public static DsrcPosition3D dsrcPosition3D(JsonNode pos) { Long latitude = pos.get("lat").asLong(); Long longitude = pos.get("long").asLong(); Long elevation = pos.get(ELEVATION).asLong(); return new DsrcPosition3D(latitude, longitude, elevation); }
Position3DBuilder { public static DsrcPosition3D dsrcPosition3D(JsonNode pos) { Long latitude = pos.get("lat").asLong(); Long longitude = pos.get("long").asLong(); Long elevation = pos.get(ELEVATION).asLong(); return new DsrcPosition3D(latitude, longitude, elevation); } }
Position3DBuilder { public static DsrcPosition3D dsrcPosition3D(JsonNode pos) { Long latitude = pos.get("lat").asLong(); Long longitude = pos.get("long").asLong(); Long elevation = pos.get(ELEVATION).asLong(); return new DsrcPosition3D(latitude, longitude, elevation); } private  Position3DBuilder(); }
Position3DBuilder { public static DsrcPosition3D dsrcPosition3D(JsonNode pos) { Long latitude = pos.get("lat").asLong(); Long longitude = pos.get("long").asLong(); Long elevation = pos.get(ELEVATION).asLong(); return new DsrcPosition3D(latitude, longitude, elevation); } private  Position3DBuilder(); static DsrcPosition3D dsrcPosition3D(JsonNode pos); static OdePosition3D odePosition3D(DsrcPosition3D dsrcPos); static OdePosition3D odePosition3D(JsonNode jpos); static DsrcPosition3D dsrcPosition3D(OdePosition3D odePosition3D); }
Position3DBuilder { public static DsrcPosition3D dsrcPosition3D(JsonNode pos) { Long latitude = pos.get("lat").asLong(); Long longitude = pos.get("long").asLong(); Long elevation = pos.get(ELEVATION).asLong(); return new DsrcPosition3D(latitude, longitude, elevation); } private  Position3DBuilder(); static DsrcPosition3D dsrcPosition3D(JsonNode pos); static OdePosition3D odePosition3D(DsrcPosition3D dsrcPos); static OdePosition3D odePosition3D(JsonNode jpos); static DsrcPosition3D dsrcPosition3D(OdePosition3D odePosition3D);  }