Add a custom version range factory method. Should hush skyboy's complaints. Closes #486

This commit is contained in:
Christian 2014-07-30 16:46:16 -02:30
parent 14f7bb44d9
commit 7ac077ed36
1 changed files with 11 additions and 1 deletions

View File

@ -85,7 +85,17 @@ 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/>