Class NaturalStringComparator

  • All Implemented Interfaces:

    public class NaturalStringComparator
    extends Object
    implements Comparator<String>
    A comparator makes string comparisons based on their natural order. The logic used to perform the natrual comparison is taken from the original page tree macro, the complete source can be found here:

    A google search revealed that this class was probably taken from this blog post:

    I refactored the original static util class into a comparator because static util classes are bad.