Package com.amazon.A3L.location
Class A3LLastLocationRequest
- java.lang.Object
-
- com.amazon.A3L.location.A3LLastLocationRequest
-
- All Implemented Interfaces:
android.os.Parcelable
public class A3LLastLocationRequest extends java.lang.Object implements android.os.Parcelable
This class provides replication of LastLocationRequest .
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
A3LLastLocationRequest.Builder
Builder forA3LLastLocationRequest
.
-
Field Summary
Fields Modifier and Type Field Description static android.os.Parcelable.Creator<A3LLastLocationRequest>
CREATOR
Creator used for fetching data from the parcel received by an activity
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
describeContents()
Needed for Parcellingboolean
equals(java.lang.Object object)
Overridden method to verify if the current A3LLastLocationRequest object and the one requested have same data.int
getGranularity()
TheA3LGranularity
of locations returned for this request.long
getMaxUpdateAgeMillis()
The maximum age of any location returned for this request.int
hashCode()
java.lang.String
toString()
void
writeToParcel(android.os.Parcel dest, int flags)
Flatten this object in to a Parcel.
-
-
-
Field Detail
-
CREATOR
@NonNull public static final android.os.Parcelable.Creator<A3LLastLocationRequest> CREATOR
Creator used for fetching data from the parcel received by an activity
-
-
Method Detail
-
getMaxUpdateAgeMillis
public long getMaxUpdateAgeMillis()
The maximum age of any location returned for this request. A value ofLong.MAX_VALUE
represents an effectively unbounded maximum age.- Returns:
- long: Maximum age of any location returned.
-
getGranularity
public int getGranularity()
TheA3LGranularity
of locations returned for this request. This controls whether fine or coarse locations may be returned.- Returns:
- int: Granularity of the location.
-
toString
@NonNull public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
describeContents
public int describeContents()
Needed for Parcelling- Specified by:
describeContents
in interfaceandroid.os.Parcelable
- Returns:
- int: 0
-
writeToParcel
public void writeToParcel(@NonNull android.os.Parcel dest, int flags)
Flatten this object in to a Parcel.- Specified by:
writeToParcel
in interfaceandroid.os.Parcelable
- Parameters:
dest
- The Parcel in which the object should be written.flags
- Additional flags about how the object should be written. May be 0 orParcelable.PARCELABLE_WRITE_RETURN_VALUE
.
-
equals
public boolean equals(java.lang.Object object)
Overridden method to verify if the current A3LLastLocationRequest object and the one requested have same data.- Overrides:
equals
in classjava.lang.Object
- Parameters:
object
- :A3LLastLocationRequest
- Returns:
- boolean: true if both objects have same information
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-