private static String toVersionString ( @ Nonnull final List < String > groups ) { final StringBuilder builder = new StringBuilder ( 6 ) ; int count = 0 ; for ( final String segment : groups ) { if ( EMPTY_GROUP . equals ( segment ) ) { break ; } else { if ( count > 0 ) { builder . append ( SEPARATOR ) ; } builder . append ( segment ) ; } count ++ ; } return builder . toString ( ) ; }
Converts the given list of numbers in a version string . The groups of the version number will be separated by a dot .