# Uses of Class
com.norconex.commons.lang.jar.JarFile

Packages that use JarFile
Package
Description
com.norconex.commons.lang.jar
Utility classes related to jar file duplicate and version conflict detection and resolution.

- ## Uses of JarFile in com.norconex.commons.lang.jar

  Methods in com.norconex.commons.lang.jar that return JarFile
  Modifier and Type
  Method
  Description
  `JarFile`
  JarDuplicates.`getGreatest()`
  Gets the duplicate jar file that is considered the greatest based on its version and last modified date (in case of equivalent versions).
  `JarFile`
  JarDuplicates.`getLatestVersion()`
  Deprecated.
  Use `JarDuplicates.getGreatest()` instead.
  Methods in com.norconex.commons.lang.jar that return types with arguments of type JarFile
  Modifier and Type
  Method
  Description
  `static List<JarFile>`
  JarDuplicateFinder.`findJarDuplicatesOf(@NonNull File jarFile, @NonNull List<File> paths)`
  Finds duplicates of a specific jar file, without returning that jar itself.
  `Optional<JarFile>`
  JarDuplicates.`get(File file)`
  Gets the `JarFile` corresponding to the supplied file by comparing their paths.
  `List<JarFile>`
  JarDuplicates.`getAllButGreatest()`
  Gets all jar files of this duplicate batch except for the one considered the greatest, as per `JarDuplicates.getGreatest()`.
  `List<JarFile>`
  JarDuplicates.`getJarFiles()`
  Gets the jar files being considered duplicates of each other.
  `static List<JarFile>`
  JarFile.`toJarFiles(File... jarPaths)`
  Returns the supplied paths as a list of `JarFile`.
  `static List<JarFile>`
  JarFile.`toJarFiles(Path... jarPaths)`
  Returns the supplied paths as a list of `JarFile`.
  `static List<JarFile>`
  JarFile.`toJarFiles(Collection<Path> jarPaths)`
  Returns the supplied paths as a list of `JarFile`.
  Methods in com.norconex.commons.lang.jar with parameters of type JarFile
  Modifier and Type
  Method
  Description
  `int`
  JarFile.`compareTo(JarFile o)`
  `void`
  JarCopier.`copyJarFile(@NonNull JarFile sourceJarFile, @NonNull File targetDirectory)`
  Copies a single Jar to a target directory, taking into consideration Jar versions.
  `boolean`
  JarFile.`isDuplicateOf(JarFile jarFile)`
  Gets whether a jar file is considered a duplicate of this one.
  `boolean`
  JarFile.`isEquivalentTo(JarFile other)`
  Gets whether this jar file is equivalent to the other if they both have the same semantic version and last modified date.
  `boolean`
  JarFile.`isGreaterOrEquivalentTo(JarFile other)`
  Gets whether this jar file is greater or equivalent to the other, by comparing semantic versions and last modified dates.
  `boolean`
  JarFile.`isGreaterThan(JarFile other)`
  Gets whether this jar file is greater than the other, by comparing semantic versions and last modified dates.
  `boolean`
  JarFile.`isLowerOrEquivalentTo(JarFile other)`
  Gets whether this jar file is lower or equivalent to the other.
  `boolean`
  JarFile.`isLowerThan(JarFile other)`
  Gets whether this jar file lower than the other, by comparing semantic versions and last modified dates.
  `boolean`
  JarFile.`isSameVersion(JarFile jarFile)`
  Deprecated.
  Use `isEquivalentTo(JarFile)` instead.
  `boolean`
  JarFile.`isSameVersionAndTime(JarFile jarFile)`
  Deprecated.
  Use `isEquivalentTo(JarFile)` instead.
  `boolean`
  JarFile.`isVersionGreaterThan(JarFile file)`
  Constructors in com.norconex.commons.lang.jar with parameters of type JarFile
  Modifier
  Constructor
  Description
  ``
  `JarDuplicates(@NonNull JarFile... jarFiles)`
  Creates a group of 2 or more `JarFile` duplicates.
  Constructor parameters in com.norconex.commons.lang.jar with type arguments of type JarFile
  Modifier
  Constructor
  Description
  ``
  `JarDuplicates(@NonNull Collection<JarFile> jarFiles)`
  Creates a group of 2 or more `JarFile` duplicates.