@Override public int compareTo(DocumentPath that) { return Comparators.lexicographical(Comparator.<String>naturalOrder()) .compare(this.pathElements, that.pathElements); }