diff options
author | jandegr <jandegr@users.noreply.github.com> | 2018-05-28 15:50:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-28 15:50:42 +0200 |
commit | bc1bc1a4dea91192f9cb9ebd86105516b96f9bf8 (patch) | |
tree | b469f17d57901357e992e0870420b73625b62174 | |
parent | e026f9f2b35bf050f9c290304d3c83ea30277fb1 (diff) | |
download | navit-bc1bc1a4dea91192f9cb9ebd86105516b96f9bf8.tar.gz |
refactor_cleanup
-rw-r--r-- | navit/android/src/org/navitproject/navit/NavitMap.java | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/navit/android/src/org/navitproject/navit/NavitMap.java b/navit/android/src/org/navitproject/navit/NavitMap.java index ee0f11bb7..5da412a39 100644 --- a/navit/android/src/org/navitproject/navit/NavitMap.java +++ b/navit/android/src/org/navitproject/navit/NavitMap.java @@ -3,38 +3,38 @@ package org.navitproject.navit; import java.io.File; public class NavitMap { - private String fileName; - String mapName; - private String mapPath; + private String mFileName; + String mMapName; + private String mMapPath; - NavitMap(String path, String map_file_name) { - mapPath = path; - fileName = map_file_name; - if (map_file_name.endsWith(".bin")) { - mapName = map_file_name.substring(0, map_file_name.length() - 4); - } else { - mapName = map_file_name; - } - } + NavitMap(String path, String mapFileName) { + mMapPath = path; + mFileName = mapFileName; + if (mapFileName.endsWith(".bin")) { + mMapName = mapFileName.substring(0, mapFileName.length() - 4); + } else { + mMapName = mapFileName; + } + } - NavitMap(String map_location) { - File mapFile = new File(map_location); + NavitMap(String mapLocation) { + File mapFile = new File(mapLocation); + + mMapPath = mapFile.getParent() + "/"; + mFileName = mapFile.getName(); + if (mFileName.endsWith(".bin")) { + mMapName = mFileName.substring(0, mFileName.length() - 4); + } else { + mMapName = mFileName; + } + } - mapPath = mapFile.getParent() + "/"; - fileName = mapFile.getName(); - if (fileName.endsWith(".bin")) { - mapName = fileName.substring(0, fileName.length() - 4); - } else { - mapName = fileName; - } - } + public long size() { + File mapFile = new File(mMapPath + mFileName); + return mapFile.length(); + } - public long size() { - File map_file = new File(mapPath + fileName); - return map_file.length(); - } - - public String getLocation() { - return mapPath + fileName; - } + public String getLocation() { + return mMapPath + mFileName; + } } |