compareTo

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

Compares two Floor objects based on their Z-index

Return

If the 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.