Skip to content

Glossary: Kotlin Beyond the Basics

Comparable

Also written: compareTo

A standard interface whose `compareTo` function is what `<` and `>` call. A bound of `Comparable<T>` lets generic code compare values.

Where the book teaches it

Related terms

upper bound