Class DelimitedVersion

  • All Implemented Interfaces:
    Comparable<DelimitedVersion>

    public class DelimitedVersion
    extends Object
    implements Comparable<DelimitedVersion>
    Represents a delimited version number for an application.

    This can parse common version number formats, treating any sequence of non-numeric characters as a delimiter, and discards these to retain just the numeric content for comparison. Trailing zeroes in a version number are discarded to produce a compact, canonical representation. Empty versions are equivalent to “0”. Each numeric part is expected to fit within a 64-bit integer.