static public VersionString getNextVersion ( VersionString version ) { int length = version . value . length ; int [ ] nextVersion = Arrays . copyOf ( version . value , length ) ; nextVersion [ length - 1 ] ++ ; // increment the last version number return new VersionString ( nextVersion ) ; }
This function returns the next version number in the series for the specified version . If the specified version is 1 the next version would be 2 . If the specified version is 2 . 5 . 7 the next version would be 2 . 5 . 8 .