compareTo

open operator override fun compareTo(other: Address): Int

Compares this Address object with the specified Address object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

Return

A negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

Parameters

other

The Address object to be compared.