public class Res
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TAG |
Constructor and Description |
---|
Res(LocationHelper mLocationHelper) |
Modifier and Type | Method and Description |
---|---|
boolean |
addLocation(IGLocation jsonLocation)
add synchronized a new location to the location list and return whether the add operation
was successful!
|
void |
clearList()
Clear the last good locations list.
|
void |
clearLocation() |
void |
clearLocationListMultimap()
clear the location list's multimap
|
IGLocation |
getLocation()
Return the last good location object.
|
java.util.List<IGLocation> |
getLocationList()
Get the location list - forward synchronized!
|
com.google.common.collect.ListMultimap<java.lang.String,android.location.Location> |
getLocationListMultimap()
Get the locations multimap - synchronized
|
void |
logLocationListMultimap()
Log the location list's multimap
|
void |
mapLocation(android.location.Location location) |
void |
setLocation(android.location.Location mLocation)
Update the last good location object.
|
void |
setLocationMultimap(com.google.common.collect.ListMultimap<java.lang.String,android.location.Location> mLocationMultimap)
setter multimap for restore purpoeses
|
public Res(LocationHelper mLocationHelper)
public boolean addLocation(IGLocation jsonLocation)
jsonLocation
- - a location object as stringified json locationpublic void clearList()
public java.util.List<IGLocation> getLocationList()
public com.google.common.collect.ListMultimap<java.lang.String,android.location.Location> getLocationListMultimap()
public IGLocation getLocation()
public void setLocation(android.location.Location mLocation)
mLocation
- - The location object to be updated.public void setLocationMultimap(com.google.common.collect.ListMultimap<java.lang.String,android.location.Location> mLocationMultimap)
mLocationMultimap
- - the locations multimap to restorepublic void clearLocation()
public void mapLocation(android.location.Location location)
public void clearLocationListMultimap()
public void logLocationListMultimap()