Interface Comparable

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int compareTo​(java.lang.Object other)
      Must return > 0 if this object is greater than the other one, < 0 if its smaller, and 0 if they are equal.
    • Method Detail

      • compareTo

        int compareTo​(java.lang.Object other)
               throws java.lang.ClassCastException
        Must return > 0 if this object is greater than the other one, < 0 if its smaller, and 0 if they are equal.
        Throws:
        java.lang.ClassCastException