Comparable and Comparator were designed for situations where the comparison operation is deterministic and predictable.
Comparable和Comparator是为确定的、可预测的比较操作而设计的。
Each comparison operation needs to read the contents - maybe even the complete contents - of the two files it's comparing.
对于所比较的两个文件,每个比较操作都需要读文件的内容—甚至可能是完整的内容。
For a comparison operation, exactly two operands must be supplied.
对于比较运算,必须正好提供两个操作数。
The comparison operation determines whether the first string lexically precedes the second or the two strings are lexically equal.
比较操作可以确定是第一个字符串在词法上排在第二个字符串之前,还是这两个字符串在词法上相等。
The comparison operation determines whether the first string lexically precedes the second or if the two strings are lexically equal.
比较操作可以确定第一个字符串是否在词法上排在第二个字符串之前,或者这两个字符串是否在词法上相等。
The comparison operation determines whether the first string lexical ly precedes the second or if the two strings are lexical ly equal.
比较操作可以确定第一个字符串是否在词法上排在第二个字符串之前,或者这两个字符串是否在词法上相等。
The comparison operation determines whether the first string lexical ly precedes the second or if the two strings are lexical ly equal.
比较操作可以确定第一个字符串是否在词法上排在第二个字符串之前,或者这两个字符串是否在词法上相等。
应用推荐