Add a custom version range factory method. Should hush skyboy's complaints. Closes #486
This commit is contained in:
parent
14f7bb44d9
commit
7ac077ed36
|
@ -86,6 +86,16 @@ public class VersionRange
|
|||
return new VersionRange( recommendedVersion, copiedRestrictions );
|
||||
}
|
||||
|
||||
/**
|
||||
* Factory method, for custom versioning schemes
|
||||
* @param version version
|
||||
* @param restrictions restriction list
|
||||
* @return a new version range
|
||||
*/
|
||||
public static VersionRange newRange(ArtifactVersion version, List<Restriction> restrictions)
|
||||
{
|
||||
return new VersionRange(version, restrictions);
|
||||
}
|
||||
/**
|
||||
* Create a version range from a string representation
|
||||
* <p/>
|
||||
|
|
Loading…
Reference in New Issue