Skip to content

Commit 62c78ab

Browse files
committed
change to match c
1 parent 5c25c48 commit 62c78ab

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public boolean isValidIndex(String h3Address) {
124124
}
125125

126126
/** Construct a cell index from component parts */
127-
public long constructCell(int res, int baseCell, List<Integer> digits) {
127+
public long constructCell(int res, int baseCellNumber, List<Integer> digits) {
128128
int[] digitsArray = digits.stream().mapToInt(Integer::intValue).toArray();
129129
if (digitsArray.length < res) {
130130
throw new IllegalArgumentException(
@@ -138,12 +138,12 @@ public long constructCell(int res, int baseCell, List<Integer> digits) {
138138
"Additional unused digits provided, must be at most 15 but was %d",
139139
digitsArray.length));
140140
}
141-
return h3Api.constructCell(res, baseCell, digitsArray);
141+
return h3Api.constructCell(res, baseCellNumber, digitsArray);
142142
}
143143

144144
/** Construct a cell index from component parts */
145-
public String constructCellAddress(int res, int baseCell, List<Integer> digits) {
146-
return h3ToString(constructCell(res, baseCell, digits));
145+
public String constructCellAddress(int res, int baseCellNumber, List<Integer> digits) {
146+
return h3ToString(constructCell(res, baseCellNumber, digits));
147147
}
148148

149149
/** Returns the base cell number for this index. */

0 commit comments

Comments
 (0)