本文整理了Java中com.github.zafarkhaja.semver.Version.lessThanOrEqualTo()
方法的一些代码示例,展示了Version.lessThanOrEqualTo()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Version.lessThanOrEqualTo()
方法的具体详情如下:
包路径:com.github.zafarkhaja.semver.Version
类名称:Version
方法名:lessThanOrEqualTo
[英]Checks if this version is less than or equal to the other version.
[中]检查此版本是否小于或等于其他版本。
代码示例来源:origin: zafarkhaja/jsemver
/**
* Checks if the current version is less
* than or equal to the parsed version.
*
* @param version the version to compare to, the left-hand operand
* of the "less than or equal to" operator
* @return {@code true} if the version is less than or equal
* to the parsed version or {@code false} otherwise
*/
@Override
public boolean interpret(Version version) {
return version.lessThanOrEqualTo(parsedVersion);
}
}
代码示例来源:origin: com.github.zafarkhaja/java-semver
/**
* Checks if the current version is less
* than or equal to the parsed version.
*
* @param version the version to compare to, the left-hand operand
* of the "less than or equal to" operator
* @return {@code true} if the version is less than or equal
* to the parsed version or {@code false} otherwise
*/
@Override
public boolean interpret(Version version) {
return version.lessThanOrEqualTo(parsedVersion);
}
}
代码示例来源:origin: org.kurento/kurento-module-creator
/**
* Checks if the current version is less than or equal to the parsed version.
*
* @param version
* the version to compare to, the left-hand operand of the "less than or equal to"
* operator
* @return {@code true} if the version is less than or equal to the parsed version or
* {@code false} otherwise
*/
@Override
public boolean interpret(Version version) {
return version.lessThanOrEqualTo(parsedVersion);
}
代码示例来源:origin: infinum/Android-Prince-of-Versions
public boolean isLessThanOrEqualsTo(Version version) {
return this.version.lessThanOrEqualTo(version.version);
}
内容来源于网络,如有侵权,请联系作者删除!