compareTo

open fun compareTo(@NonNull anotherFloor: Floor): Int

Compares two Floor objects based on their Z-index

Return

Ifthe two objects have an equal Z-index, the method will return 0. If the argument has a higher Z-index, the method will return 1. If the argument has a lower Z-index, the method will return -1.

See also

Parameters

anotherFloor

Floor to compare to.