...排序的决定方式则可让被收集物件实作Comparable介面(根据被收集物件的Comparable定义来决定称之为自然排序(natural ordering),例如String就以字典顺序的方式实作了Comparable介面),或设定一个Comparator物件给TreeSet来决定排序方式。
基于84个网页-相关网页
natural ordering semilattice 自然序半格
natural dictionary ordering method natural字典排序法
natural partial ordering [数] 自然偏序
natural componentwise partial ordering [数] 自然按分量方式偏序
以上来源于: WordNet
That means the natural ordering or policy target is overridden.
这意味着将覆盖自然排序或策略目标。
The natural ordering of policy target (Figure 29) is used to resolve conflicts.
我们使用策略目标的自然排序(图29)解决冲突。
Changing LinkedList in Listing 2 to PriorityQueue will result in Four being printed out instead of One, as Four comes first alphabetically — the natural ordering of strings.
将清单2中的LinkedList改变为PriorityQueue将会打印出Four而不是One,因为按字母排列——字符串的天然顺序——Four是第一个。
应用推荐