Class Version
- java.lang.Object
-
- org.apache.subversion.javahl.types.Version
-
- Direct Known Subclasses:
SVNClientImplVersion
public class Version extends java.lang.Object
Encapsulates version information about the underlying native libraries. Basically a wrapper forsvn_version.h
.
-
-
Constructor Summary
Constructors Constructor Description Version()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getMajor()
int
getMinor()
private java.lang.String
getNumberTag()
int
getPatch()
private java.lang.String
getTag()
boolean
isAtLeast(int major, int minor, int patch)
java.lang.String
toString()
-
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
- Returns:
- The full version string for the loaded JavaHL library,
as defined by
MAJOR.MINOR.PATCH INFO
.
-
getMajor
public int getMajor()
- Returns:
- The major version number for the loaded JavaHL library.
-
getMinor
public int getMinor()
- Returns:
- The minor version number for the loaded JavaHL library.
-
getPatch
public int getPatch()
- Returns:
- The patch-level version number for the loaded JavaHL library.
-
isAtLeast
public boolean isAtLeast(int major, int minor, int patch)
- Returns:
- Whether the JavaHL native library version is at least
of
major.minor.patch
level.
-
getTag
private java.lang.String getTag()
- Returns:
- Some text further describing the library version
(e.g.
" (r1234)"
," (Alpha 1)"
," (dev build)"
, etc.).
-
getNumberTag
private java.lang.String getNumberTag()
- Returns:
- Some text further describing the library version (e.g. "r1234", "Alpha 1", "dev build", etc.).
-
-