public class VersionFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
IVersionRange |
getRange(Collection<String> versions)
Join this set of ranges together.
|
IVersionRange |
getRange(String vstring)
Get a version range
|
IVersionRange |
getRange(String[] versions)
Join this set of ranges together.
|
static VersionFactory |
getStrictVersionFactory()
Get a strict version factory.
|
IVersion |
getVersion(String vstring)
Get a version implementation.
|
IVersion |
getVersion(String hint,
String version)
Get a version implementation.
|
static VersionFactory |
getVersionFactory()
Version factory, which is really not needed since we have all
static methods now.
|
boolean |
isMavenRange(String vstring) |
IVersionRange |
merge(IVersionRange... ranges)
Given two "or" ranges or "simple" ranges, merge them together.
|
public static VersionFactory getVersionFactory()
public static VersionFactory getStrictVersionFactory()
public IVersion getVersion(String vstring) throws InvalidRangeException
vstring - A string version to be parsedInvalidRangeExceptionpublic IVersion getVersion(String hint, String version) throws InvalidRangeException
hint - Hint of the version styleversion - A string version to be parsedInvalidRangeExceptionpublic IVersionRange getRange(String vstring) throws InvalidRangeException
InvalidRangeExceptionpublic IVersionRange getRange(String[] versions) throws InvalidRangeException
InvalidRangeExceptionpublic IVersionRange getRange(Collection<String> versions) throws InvalidRangeException
InvalidRangeExceptionpublic boolean isMavenRange(String vstring) throws InvalidRangeException
InvalidRangeExceptionpublic IVersionRange merge(IVersionRange... ranges)
Copyright © 2018. All rights reserved.