public class JarFile extends Object implements Comparable<JarFile>
Modifier and Type | Field and Description |
---|---|
static FileFilter |
FILTER |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(JarFile o) |
boolean |
equals(Object other) |
String |
getBaseName() |
String |
getFullName() |
Date |
getLastModified() |
File |
getPath() |
String |
getVersion() |
int |
hashCode() |
boolean |
isSameVersion(JarFile jarFile)
Gets whether this Jar has the same name and version as
the provided jar.
|
boolean |
isSameVersionAndTime(JarFile jarFile)
Gets whether this Jar has the same name and version as
the provided jar, as well as the same last modified date.
|
boolean |
isVersionGreaterThan(JarFile file) |
String |
toString() |
public static final FileFilter FILTER
public JarFile(File jarFile)
public File getPath()
public String getFullName()
public String getBaseName()
public String getVersion()
public Date getLastModified()
public boolean isVersionGreaterThan(JarFile file)
public boolean isSameVersion(JarFile jarFile)
jarFile
- jar filetrue
if the jar names and versions are the same.public boolean isSameVersionAndTime(JarFile jarFile)
jarFile
- jar filetrue
if the jar names, versions and last modified
dates are the same.public int compareTo(JarFile o)
compareTo
in interface Comparable<JarFile>
Copyright © 2008–2021 Norconex Inc.. All rights reserved.