Java 类com.google.common.collect.Comparators 实例源码

项目:atomix    文件:DocumentPath.java   
@Override
public int compareTo(DocumentPath that) {
  return Comparators.lexicographical(Comparator.<String>naturalOrder())
      .compare(this.pathElements, that.pathElements);
}
项目:onos    文件:DocumentPath.java   
@Override
public int compareTo(DocumentPath that) {
    return Comparators.lexicographical(Comparator.<String>naturalOrder())
            .compare(this.pathElements, that.pathElements);
}