compareTo

open fun compareTo(@NonNull another: Size): Int

Compares this size to another size based on their larger dimension. This comparison is useful for ordering pages by their maximum dimension.

Return

A negative integer, zero, or a positive integer as this size's larger dimension is less than, equal to, or greater than the other's.

Parameters

another

The size to compare with.