Skip to content

Commit 080aca7

Browse files
authored
reorder polygonToCellsExperimental arguments (#166)
1 parent 74c58f9 commit 080aca7

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

src/main/java/com/uber/h3core/H3Core.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -525,8 +525,8 @@ public List<Long> gridPathCells(long start, long end) {
525525
* @param res Resolution of the desired indexes
526526
*/
527527
public List<String> polygonToCellAddressesExperimental(
528-
List<LatLng> points, List<List<LatLng>> holes, PolygonToCellsFlags flags, int res) {
529-
return h3ToStringList(polygonToCellsExperimental(points, holes, flags, res));
528+
List<LatLng> points, List<List<LatLng>> holes, int res, PolygonToCellsFlags flags) {
529+
return h3ToStringList(polygonToCellsExperimental(points, holes, res, flags));
530530
}
531531

532532
/**
@@ -538,7 +538,7 @@ public List<String> polygonToCellAddressesExperimental(
538538
* @throws IllegalArgumentException Invalid resolution
539539
*/
540540
public List<Long> polygonToCellsExperimental(
541-
List<LatLng> points, List<List<LatLng>> holes, PolygonToCellsFlags flags, int res) {
541+
List<LatLng> points, List<List<LatLng>> holes, int res, PolygonToCellsFlags flags) {
542542
checkResolution(res);
543543

544544
// pack the data for use by the polyfill JNI call

src/test/java/com/uber/h3core/TestRegion.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ void polyfillExperimentalCenter() {
4141
new LatLng(37.7835871999971715, -122.5247187000021967),
4242
new LatLng(37.8151571999998453, -122.4798767000009008)),
4343
null,
44-
PolygonToCellsFlags.containment_center,
45-
9);
44+
9,
45+
PolygonToCellsFlags.containment_center);
4646

4747
assertTrue(hexagons.size() > 1000);
4848
}
@@ -59,8 +59,8 @@ void polyfillExperimentalFull() {
5959
new LatLng(37.7835871999971715, -122.5247187000021967),
6060
new LatLng(37.8151571999998453, -122.4798767000009008)),
6161
null,
62-
PolygonToCellsFlags.containment_full,
63-
9);
62+
9,
63+
PolygonToCellsFlags.containment_full);
6464

6565
assertTrue(hexagons.size() > 1000);
6666
}
@@ -77,8 +77,8 @@ void polyfillExperimentalOverlapping() {
7777
new LatLng(37.7835871999971715, -122.5247187000021967),
7878
new LatLng(37.8151571999998453, -122.4798767000009008)),
7979
null,
80-
PolygonToCellsFlags.containment_overlapping,
81-
9);
80+
9,
81+
PolygonToCellsFlags.containment_overlapping);
8282

8383
assertTrue(hexagons.size() > 1000);
8484
}
@@ -95,8 +95,8 @@ void polyfillExperimentalOverlappingBbox() {
9595
new LatLng(37.7835871999971715, -122.5247187000021967),
9696
new LatLng(37.8151571999998453, -122.4798767000009008)),
9797
null,
98-
PolygonToCellsFlags.containment_overlapping_bbox,
99-
9);
98+
9,
99+
PolygonToCellsFlags.containment_overlapping_bbox);
100100

101101
assertTrue(hexagons.size() > 1000);
102102
}
@@ -113,8 +113,8 @@ void polyfillExperimental() {
113113
new LatLng(37.7835871999971715, -122.5247187000021967),
114114
new LatLng(37.8151571999998453, -122.4798767000009008)),
115115
null,
116-
PolygonToCellsFlags.containment_center,
117-
9);
116+
9,
117+
PolygonToCellsFlags.containment_center);
118118

119119
assertTrue(hexagons.size() > 1000);
120120
}

0 commit comments

Comments
 (0)