- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {ArrayList a =
new ArrayList<String>()
new ArrayList()
new ArrayList<Object>()
- Smart code suggestions by Codota
}
private boolean isWayInBounds(OsmWay way, double minLatitude, double minLongitude, double maxLatitude, double maxLongitude) { double wayMinLatitude = Double.MAX_VALUE; double wayMinLongitude = Double.MAX_VALUE; double wayMaxLatitude = -Double.MAX_VALUE; double wayMaxLongitude = -Double.MAX_VALUE; for (int i = 0; i < way.getNumberOfNodes(); i++) { try { OsmNode node = this.getNode(way.getNodeId(i)); double latitude = node.getLatitude(); if (latitude < wayMinLatitude) { wayMinLatitude = latitude; } if (latitude > wayMaxLatitude) { wayMaxLatitude = latitude; } double longitude = node.getLongitude(); if (longitude < wayMinLongitude) { wayMinLongitude = longitude; } if (longitude > wayMaxLongitude) { wayMaxLongitude = longitude; } } catch (EntityNotFoundException e) { } } return minLatitude < wayMaxLatitude && maxLatitude > wayMinLatitude && minLongitude < wayMaxLongitude && maxLongitude > wayMinLongitude; } }
if (!Double.isNaN(node.getLatitude())) { lat.set(row, HiveDecimal.create(node.getLatitude()));