Class ExternalLocation

  • All Implemented Interfaces:
    android.os.Parcelable, MapperInterface

    public class ExternalLocation
    extends java.lang.Object
    implements android.os.Parcelable, MapperInterface
    • Field Detail

      • CREATOR

        public static final android.os.Parcelable.Creator<ExternalLocation> CREATOR
    • Method Detail

      • getBuildingId

        public java.lang.String getBuildingId()
      • getFloorId

        public java.lang.String getFloorId()
      • getAccuracy

        public float getAccuracy()
      • getBearing

        public Angle getBearing()
      • hasBearing

        public boolean hasBearing()
        Returns:
        true if bearing is not null
      • describeContents

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

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

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

        @NonNull
        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
      • toMap

        public java.util.Map<java.lang.String,​java.lang.Object> toMap()
        Description copied from interface: MapperInterface
        Method to transform object into Map
        Specified by:
        toMap in interface MapperInterface
        Returns:
        Map with the information of the object mapped
      • fromMap

        public static ExternalLocation fromMap​(java.util.Map<java.lang.String,​java.lang.Object> map)
                                        throws java.lang.IllegalArgumentException
        Throws:
        java.lang.IllegalArgumentException