private void parse ( String version ) { String [ ] tokens = StringUtil . tokenizeVersionString ( version ) ; this . major = Byte . valueOf ( tokens [ 0 ] ) ; this . minor = Byte . valueOf ( tokens [ 1 ] ) ; if ( tokens . length > 3 && tokens [ 3 ] != null ) { this . patch = Byte . valueOf ( tokens [ 3 ] ) ; } }
populate this Version s major minor patch from given String