public static List<? extends GenericNameVersion> ofAll(CharSequence string) {

    List<GenericNameVersion> segments = new ArrayList<>();
    Matcher matcher = NAME_VERSION_PATTERN.matcher(string);
    while (matcher.find()) {
      GenericNameVersion segment = ofMatcher(matcher);
      segments.add(segment);
    }
    return segments;
  }
public static List < ? extends GenericNameVersion > ofAll ( CharSequence string ) { List < GenericNameVersion > segments = new ArrayList < > ( ) ; Matcher matcher = NAME_VERSION_PATTERN . matcher ( string ) ; while ( matcher . find ( ) ) { GenericNameVersion segment = ofMatcher ( matcher ) ; segments . add ( segment ) ; } return segments ; }
@param string the string to parse.
@return the parsed {@link List} of {@link GenericNameVersion}s.