public Version removeQualifier(String qualifier){
  List<String> newQualifiers=new ArrayList<>(this.qualifiers);
  newQualifiers.remove(qualifier);
  return new Version(major,minor,patch,newQualifiers.toArray(new String[newQualifiers.size()]));
}

public Version removeQualifier ( String qualifier ) { List < String > newQualifiers = new ArrayList < > ( this . qualifiers ) ; newQualifiers . remove ( qualifier ) ; return new Version ( major , minor , patch , newQualifiers . toArray ( new String [ newQualifiers . size ( ) ] ) ) ; }
creates a new version object from the current one , but removes the given qualifier from it if it exists .
