OmhCoordinate

Class representing a pair of latitude and longitude coordinates. This class doesn't require to implement restrictions related with the latitude and longitude because each time the interfaces are implemented they will parse to their own Coordinate model.

Implements Parcelable interface to facilitate the usage.

Constructors

Link copied to clipboard
constructor(parcel: Parcel)

Constructs a omhCoordinate with the given Parcel.

constructor(latitude: Double, longitude: Double)

Constructs a OmhCoordinate with the given latitude and longitude.

constructor()

Types

Link copied to clipboard

public CREATOR field that generates instances of your Parcelable class from a Parcel.

Properties

Link copied to clipboard

Latitude representation.

Link copied to clipboard

Longitude representation.

Functions

Link copied to clipboard
open override fun describeContents(): Int

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. Value is either 0 or CONTENTS_FILE_DESCRIPTOR

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Compares if this OmhCoordinate is equal to another.

Link copied to clipboard
open override fun hashCode(): Int

Returns hash code for the object.

Link copied to clipboard
open override fun toString(): String

Returns a string representation of the object.

Link copied to clipboard
open override fun writeToParcel(parcel: Parcel, flags: Int)

Flatten this object in to a Parcel.