compareTo

open operator override fun compareTo(other: ModelElement.QObject): Int

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

Throws ClassCastException if the specified object's type prevents it from being compared to this object.

Throws RuntimeException if the id's of the objects are the same, but the references are not when compared with equals.

Note: This class may have a natural ordering that is inconsistent with equals.

Return

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

Parameters

other

The object to compare to