Class Version

  • Direct Known Subclasses:
    SVNClientImplVersion

    public class Version
    extends java.lang.Object
    Encapsulates version information about the underlying native libraries. Basically a wrapper for svn_version.h.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private Version aVersion  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getMajor()  
      int getMinor()  
      int getPatch()  
      boolean isAtLeast​(int major, int minor, int patch)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • aVersion

        private Version aVersion
    • Constructor Detail

      • Version

        public Version()
      • Version

        public Version​(Version aVersion)
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        Returns:
        The full version string for the loaded JavaHL library, as defined by MAJOR.MINOR.PATCH INFO.
        Since:
        1.4.0
      • getMajor

        public int getMajor()
        Returns:
        The major version number for the loaded JavaHL library.
        Since:
        1.4.0
      • getMinor

        public int getMinor()
        Returns:
        The minor version number for the loaded JavaHL library.
        Since:
        1.4.0
      • getPatch

        public int getPatch()
        Returns:
        The patch-level version number for the loaded JavaHL library.
        Since:
        1.4.0
      • 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.
        Since:
        1.5.0