本文整理汇总了Java中org.apache.subversion.javahl.types.Version类的典型用法代码示例。如果您正苦于以下问题:Java Version类的具体用法?Java Version怎么用?Java Version使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Version类属于org.apache.subversion.javahl.types包,在下文中一共展示了Version类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: init
import org.apache.subversion.javahl.types.Version; //导入依赖的package包/类
/**
* Initializer for native resources to be invoked <em>after</em>
* the native library has been loaded. Sets library version
* information, and initializes the re-entrance hack for native
* code.
* @throws LinkageError If the version of the loaded native
* library is not compatible with this version of JavaHL's Java
* APIs.
*/
private static final void init()
{
initNativeLibrary();
version = new Version();
if (!version.isAtLeast(1, 8, 0))
{
throw new LinkageError("Native library version must be at least " +
"1.8.0, but is only " + version);
}
}
示例2: getVersion
import org.apache.subversion.javahl.types.Version; //导入依赖的package包/类
/**
* Returns version information about the underlying native libraries.
*
* @return version
*
*/
public static Version getVersion() {
return version;
}