List of usage examples for com.google.common.collect Comparators lexicographical
public static <T, S extends T> Comparator<Iterable<S>> lexicographical(Comparator<T> comparator)
From source file:io.atomix.core.tree.DocumentPath.java
@Override public int compareTo(DocumentPath that) { return Comparators.lexicographical(Comparator.<String>naturalOrder()).compare(this.pathElements, that.pathElements);//from ww w. jav a 2 s.co m }