public class VersionHelper extends Object
| Constructor and Description |
|---|
VersionHelper() |
| Modifier and Type | Method and Description |
|---|---|
static VersionRangeDTO |
createDefaultRange()
Create the default version range [0.0.0,inf)
|
static VersionDTO |
createDefaultVersion()
Create the default version 0.0.0
|
static VersionRangeDTO |
toRange(String versionRange)
Convert a string representation of a version range into a DTO.
|
static VersionRangeDTO |
toRange(VersionRange versionRange)
Convert a version range into a DTO.
|
static VersionDTO |
toVersion(String version)
Convert a version into a DTO.
|
public static VersionRangeDTO toRange(String versionRange)
versionRange - the version range to convertnull if the version range in
argument is null or is not a version rangepublic static VersionRangeDTO toRange(VersionRange versionRange)
versionRange - the version range to convertpublic static VersionDTO toVersion(String version)
version - the version to convertnull if the version in argument is
null or is not a versionpublic static VersionRangeDTO createDefaultRange()
public static VersionDTO createDefaultVersion()
Copyright © 2021. All rights reserved.