本文整理了Java中org.ovirt.engine.core.compat.Version.getRevision()
方法的一些代码示例,展示了Version.getRevision()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Version.getRevision()
方法的具体详情如下:
包路径:org.ovirt.engine.core.compat.Version
类名称:Version
方法名:getRevision
暂无
代码示例来源:origin: oVirt/ovirt-engine
public OS(String name, Version version, String fullVersion) {
Objects.requireNonNull(name);
Objects.requireNonNull(version);
this.name = name.trim();
this.version = new Version(version.getMajor(), version.getMinor(), version.getBuild(), version.getRevision());
this.fullVersion = fullVersion;
}
代码示例来源:origin: oVirt/ovirt-engine
public static Version map(org.ovirt.engine.core.compat.Version versionEngine) {
Version versionApi = new Version();
versionApi.setMajor(versionEngine.getMajor() >= 0 ? versionEngine.getMajor() : null);
versionApi.setMinor(versionEngine.getMinor() >= 0 ? versionEngine.getMinor() : null);
versionApi.setBuild(versionEngine.getBuild() >= 0 ? versionEngine.getBuild() : null);
versionApi.setRevision(versionEngine.getRevision() >= 0 ? versionEngine.getRevision() : null);
return versionApi;
}
内容来源于网络,如有侵权,请联系作者删除!