OmhCoordinate

class OmhCoordinate : Parcelable

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
fun OmhCoordinate(parcel: Parcel)

Constructs a omhCoordinate with the given Parcel.

Link copied to clipboard
fun OmhCoordinate(latitude: Double, longitude: Double)

Constructs a OmhCoordinate with the given latitude and longitude.

Link copied to clipboard

Types

Link copied to clipboard
object CREATOR : Parcelable.Creator<OmhCoordinate>

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

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.

Properties

Link copied to clipboard
var latitude: Double

Latitude representation.

Link copied to clipboard
var longitude: Double

Longitude representation.