public VersionNamingConfiguration(String searchVersionRegex,String replaceVersionRegex,BranchingPolicy... policies){
  this.branchPolicies=new LinkedList<>(Arrays.asList(policies));
  this.searchPattern=Pattern.compile(searchVersionRegex);
  this.replaceVersionRegex=replaceVersionRegex;
}

public VersionNamingConfiguration ( String searchVersionRegex , String replaceVersionRegex , BranchingPolicy ... policies ) { this . branchPolicies = new LinkedList < > ( Arrays . asList ( policies ) ) ; this . searchPattern = Pattern . compile ( searchVersionRegex ) ; this . replaceVersionRegex = replaceVersionRegex ; }
builds a configuration object holding information to use while building version .
