Exemplo n.º 1
0
 private static void setLocation(final cgCache cache, final String location) {
   final String latitude = StringUtils.substringBefore(location, "|");
   final String longitude = StringUtils.substringAfter(location, "|");
   // FIXME: the next line should be a setter at cgCache
   cache.setCoords(GeopointParser.parse(latitude, longitude));
 }
Exemplo n.º 2
0
 private static void setLocation(final cgCache cache, final String location) {
   final String latitude = StringUtils.substringBefore(location, "|");
   final String longitude = StringUtils.substringAfter(location, "|");
   cache.setCoords(new Geopoint(latitude, longitude));
 }