public void setVersion ( String value ) { clear ( ) ; if ( value == null || value . length ( ) == 0 ) { return ; } String pcs [ ] = value . split ( "\\." , 4 ) ; int len = Math . min ( pcs . length , 4 ) ; for ( int i = 0 ; i < len ; i ++ ) { ver [ i ] = Long . parseLong ( pcs [ i ] ) ; } }
Set version components from input value .