Class LexicalNumericComparator

java.lang.Object
com.arpnetworking.utility.LexicalNumericComparator
All Implemented Interfaces:
Serializable, Comparator<String>

public class LexicalNumericComparator extends Object implements Comparator<String>, Serializable
Compares strings lexically and numerically by splitting on digits and using the full number for numerical comparison. NOTE: does not support negatives or decimal places
Author:
Brandon Arp (brandon dot arp at inscopemetrics dot com)
See Also:
  • Constructor Details

    • LexicalNumericComparator

      public LexicalNumericComparator()
  • Method Details