compareTo

open fun compareTo(@NonNull annotation: Annotation): Int

Compares this Annotation object with another Annotation.

Return

returns 0 if id's match, 1 if id is lower, -1 if id is higher of another Annotation

Parameters

annotation

Another Annotation to compare with this object.