Class MapCoordinates

java.lang.Object
com.navmii.sdk.common.MapCoordinates
All Implemented Interfaces:
android.os.Parcelable

public final class MapCoordinates
extends java.lang.Object
implements android.os.Parcelable
  • Nested Class Summary

    Nested classes/interfaces inherited from interface android.os.Parcelable

    android.os.Parcelable.ClassLoaderCreator<T extends java.lang.Object>, android.os.Parcelable.Creator<T extends java.lang.Object>
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static android.os.Parcelable.Creator<MapCoordinates> CREATOR  

    Fields inherited from interface android.os.Parcelable

    CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
  • Constructor Summary

    Constructors 
    Constructor Description
    MapCoordinates​(double latitude, double longitude)
    Creates a MapCoordinates with the specified latitude and longitude.
  • Method Summary

    Modifier and Type Method Description
    int describeContents()  
    boolean equals​(java.lang.Object o)  
    double getLatitude()  
    double getLongitude()  
    int hashCode()  
    java.lang.String toString()  
    void writeToParcel​(android.os.Parcel dest, int flags)  

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • MapCoordinates

      public MapCoordinates​(double latitude, double longitude)
      Creates a MapCoordinates with the specified latitude and longitude. The latitude is clamped to the range [-90, 90]. The longitude is normalized to the range [-180, 180).
      Parameters:
      latitude - The latitude of the point in degrees.
      longitude - The longitude of the point in degrees.
  • Method Details

    • writeToParcel

      public void writeToParcel​(android.os.Parcel dest, int flags)
      Specified by:
      writeToParcel in interface android.os.Parcelable
    • describeContents

      public int describeContents()
      Specified by:
      describeContents in interface android.os.Parcelable
    • getLatitude

      public double getLatitude()
      Returns:
      The latitude in the range [-90, 90].
    • getLongitude

      public double getLongitude()
      Returns:
      The longitude in the range [-180, 180).
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object