Package com.iizix.geo
Class DeviceLocation
java.lang.Object
com.iizix.geo.DeviceLocation
Class holding the location of a device.
- Author:
- Christopher Mindus
Constructor Details
DeviceLocation
Constructor.- Parameters:
device
- The device UUID.location
- The location.- Throws:
NullPointerException
- If deviceId or location is null.
Method Details
getLocation
Retrieves the location of the device.- Returns:
- The location.
getDeviceUUID
Returns the device UUID if possible.- Returns:
- The device UUID, "browser" or "unknown".
equals
Checks for equality.hashCode
public int hashCode()Hash code.toString
String representation of the class.