Class VersionPartComparator

java.lang.Object
org.dellroad.stuff.string.VersionPartComparator
All Implemented Interfaces:
Serializable, Comparator<String>

public class VersionPartComparator extends Object implements Comparator<String>, Serializable
Comparator for version number parts.

This comparator puts numerical parts before non-numerical parts. Then, numerical parts are compared numerically, and non-numerical parts are compared lexically.

See Also:
  • Constructor Details

    • VersionPartComparator

      public VersionPartComparator()
  • Method Details