public class JarDuplicates extends Object
Constructor and Description |
---|
JarDuplicates(JarFile... jarFiles) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(File jarFile)
Gets whether this duplicate batch contains the given jar file.
|
JarFile[] |
getJarFiles()
Gets the jar files being considered duplicates of each other.
|
JarFile |
getLatestVersion()
Gets the jar file that is considered the most recent of the batch.
|
boolean |
hasVersionConflict()
Whether all jar files share the same version or if at least one of them
have a different version.
|
public JarDuplicates(JarFile... jarFiles)
public JarFile[] getJarFiles()
public JarFile getLatestVersion()
public boolean hasVersionConflict()
true
if at least one jar file has a different
versionpublic boolean contains(File jarFile)
jarFile
- jar filetrue
if this instance contains the given jar fileCopyright © 2008–2023 Norconex Inc.. All rights reserved.