首页 / 词典 / good

compareto

  • 网络比较函数
comparetocompareto
  1. If CompareTo returns a0 , that means the two strings are equal ; anything other than a0 means that the two strings are different .

    如果CompareTo返回0,那意味着两个字符串相等。

  2. One of the implications of erasure is that a class cannot implement both Comparable and Comparable , because both of these are in fact the same interface , specifying the same compareTo () method .

    擦除意味着一个类不能同时实现Comparable和Comparable,因为事实上两者都在同一个接口中,指定同一个compareTo()方法。