Class VersionInfo

  • All Implemented Interfaces:
    Comparable

    public class VersionInfo
    extends Object
    implements Comparable
    Metadata pertaining to versions.
    • Constructor Detail

      • VersionInfo

        public VersionInfo​(String version,
                           String extension)
        Constructs a new VersionInfo instance.
        Parameters:
        version - the version
        extension - the extension (only pertains to versioned resources, not libraries, and thus may be null)
    • Method Detail

      • getVersion

        public String getVersion()
        Returns:
        the version
      • getExtension

        public String getExtension()
        Returns:
        the extension of the resource at processing time, or null if this version is associated with a library
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object