public class LatLngSpan
extends java.lang.Object
implements android.os.Parcelable
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<LatLngSpan> |
CREATOR
Inner class responsible for recreating Parcels into objects.
|
Constructor and Description |
---|
LatLngSpan(double latitudeSpan,
double longitudeSpan)
Creates a LatLgnSpan.
|
Modifier and Type | Method and Description |
---|---|
int |
describeContents()
Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.
|
boolean |
equals(java.lang.Object object)
Indicates whether some other object is "equal to" this one.
|
double |
getLatitudeSpan()
Returns the latitude span.
|
double |
getLongitudeSpan()
Returns to longitude span.
|
int |
hashCode()
Returns a hash code value for the object.
|
void |
setLatitudeSpan(double latitudeSpan)
Sets the latitude span.
|
void |
setLongitudeSpan(double longitudeSpan)
Sets the longitude span.
|
void |
writeToParcel(android.os.Parcel out,
int flags)
Flatten this object in to a Parcel.
|
public static final android.os.Parcelable.Creator<LatLngSpan> CREATOR
public LatLngSpan(double latitudeSpan, double longitudeSpan)
latitudeSpan
- The span used for latitude.longitudeSpan
- The span used for longitude.public double getLatitudeSpan()
public void setLatitudeSpan(double latitudeSpan)
latitudeSpan
- The latitude span to set.public double getLongitudeSpan()
public void setLongitudeSpan(double longitudeSpan)
longitudeSpan
- The longitude span to set.public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
object
- The object to comparepublic int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(@NonNull android.os.Parcel out, int flags)
writeToParcel
in interface android.os.Parcelable
out
- Parcel in which the object should be writtenflags
- Additional flags about how the object should be writtenpublic int hashCode()
hashCode
in class java.lang.Object