@Override public int compareTo(String o){
  int result;
  int major;
  int minor;
  int revision;
  int pnt;
  int[] maj=new int[1];
  int[] min=new int[1];
  int[] rev=new int[1];
  int[] point=new int[1];
  parseVersion(o,maj,min,rev,point);
  major=maj[0];
  minor=min[0];
  revision=rev[0];
  pnt=point[0];
  if (MAJOR < major) {
    result=-1;
  }
 else   if (MAJOR == major) {
    if (MINOR < minor) {
      result=-1;
    }
 else     if (MINOR == minor) {
      if (REVISION < revision) {
        result=-1;
      }
 else       if (REVISION == revision) {
        if (POINT < pnt) {
          result=-1;
        }
 else         if (POINT == pnt) {
          result=0;
        }
 else {
          result=1;
        }
      }
 else {
        result=1;
      }
    }
 else {
      result=1;
    }
  }
 else {
    result=1;
  }
  return result;
}

@ Override public int compareTo ( String o ) { int result ; int major ; int minor ; int revision ; int pnt ; int [ ] maj = new int [ 1 ] ; int [ ] min = new int [ 1 ] ; int [ ] rev = new int [ 1 ] ; int [ ] point = new int [ 1 ] ; parseVersion ( o , maj , min , rev , point ) ; major = maj [ 0 ] ; minor = min [ 0 ] ; revision = rev [ 0 ] ; pnt = point [ 0 ] ; if ( MAJOR < major ) { result = - 1 ; } else if ( MAJOR == major ) { if ( MINOR < minor ) { result = - 1 ; } else if ( MINOR == minor ) { if ( REVISION < revision ) { result = - 1 ; } else if ( REVISION == revision ) { if ( POINT < pnt ) { result = - 1 ; } else if ( POINT == pnt ) { result = 0 ; } else { result = 1 ; } } else { result = 1 ; } } else { result = 1 ; } } else { result = 1 ; } return result ; }
checks the version of this class against the given version - string
