aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/connector/gc/UTFGrid.java
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/cgeo/geocaching/connector/gc/UTFGrid.java')
-rw-r--r--main/src/cgeo/geocaching/connector/gc/UTFGrid.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/main/src/cgeo/geocaching/connector/gc/UTFGrid.java b/main/src/cgeo/geocaching/connector/gc/UTFGrid.java
index 89a3de8..4db0519 100644
--- a/main/src/cgeo/geocaching/connector/gc/UTFGrid.java
+++ b/main/src/cgeo/geocaching/connector/gc/UTFGrid.java
@@ -3,22 +3,22 @@ package cgeo.geocaching.connector.gc;
import java.util.List;
/**
- *
+ *
* @see <a href="https://github.com/mapbox/mbtiles-spec/blob/master/1.1/utfgrid.md">Mapbox</a>
- *
+ *
*/
-public final class UTFGrid {
+final class UTFGrid {
- public static final int GRID_MAXX = 63;
- public static final int GRID_MAXY = 63;
+ static final int GRID_MAXX = 63;
+ static final int GRID_MAXY = 63;
/** Calculate from a list of positions (x/y) the coords */
- public static UTFGridPosition getPositionInGrid(List<UTFGridPosition> positions) {
+ static UTFGridPosition getPositionInGrid(final List<UTFGridPosition> positions) {
int minX = GRID_MAXX;
int maxX = 0;
int minY = GRID_MAXY;
int maxY = 0;
- for (UTFGridPosition pos : positions) {
+ for (final UTFGridPosition pos : positions) {
minX = Math.min(minX, pos.x);
maxX = Math.max(maxX, pos.x);
minY = Math.min(minY, pos.y);