Package icu.easyj.core.util.jar
Class JarInfo
java.lang.Object
icu.easyj.core.util.jar.JarInfo
JAR信息
- Author:
- wangliang181230
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJarInfo(String filePath, String group, String name, Attributes manifestAttributes, VersionInfo versionInfo) 构造函数 -
Method Summary
Modifier and TypeMethodDescriptionbooleanbetweenVersion(String startVersion, String toVersion) 是否介于两个版本之间,即:version >= startVersion && version <= endVersionintcompareToVersion(String otherVersion) 比较版本号booleangetAttribute(String name) getAttribute(Attributes.Name name) getGroup()getName()longinthashCode()booleannotBetweenVersion(String startVersion, String toVersion)
-
Field Details
-
UNKNOWN_GROUP
- See Also:
-
-
Constructor Details
-
JarInfo
public JarInfo(@NonNull String filePath, @NonNull String group, @NonNull String name, @NonNull Attributes manifestAttributes, @Nullable VersionInfo versionInfo) 构造函数- Parameters:
filePath- JAR文件路径group- JAR所属组名name- JAR名称manifestAttributes- META-INF/MANIFEST.MF文件的属性集合versionInfo- JAR版本信息
-
JarInfo
public JarInfo(@NonNull String filePath, @NonNull String group, @NonNull String name, @NonNull Attributes manifestAttributes, @Nullable String version)
-
-
Method Details
-
compareToVersion
比较版本号- Parameters:
otherVersion- 其他版本号- Returns:
- 比较结果:1=比other高、0=相同、-1=比other低
-
betweenVersion
是否介于两个版本之间,即:version >= startVersion && version <= endVersion- Parameters:
startVersion- 起始版本toVersion- 截止版本- Returns:
- true=介于 | false=不介于
-
notBetweenVersion
-
getFilePath
-
getGroup
-
getName
-
getFullName
-
getVersionInfo
-
getVersion
-
getVersionLong
public long getVersionLong() -
getAttributes
-
getAttribute
-
getAttribute
-
equals
-
hashCode
public int hashCode()
-