public static class Version.Builder
extends java.lang.Object
Version class.| Constructor and Description |
|---|
Version.Builder()
Constructs a
Builder instance. |
Version.Builder(java.lang.String normal)
Constructs a
Builder instance with the
string representation of the normal version. |
| Modifier and Type | Method and Description |
|---|---|
Version |
build()
Builds a
Version object. |
Version.Builder |
setBuildMetadata(java.lang.String build)
Sets the build metadata.
|
Version.Builder |
setNormalVersion(java.lang.String normal)
Sets the normal version.
|
Version.Builder |
setPreReleaseVersion(java.lang.String preRelease)
Sets the pre-release version.
|
public Version.Builder()
Builder instance.public Version.Builder(java.lang.String normal)
Builder instance with the
string representation of the normal version.normal - the string representation of the normal versionpublic Version.Builder setNormalVersion(java.lang.String normal)
normal - the string representation of the normal versionpublic Version.Builder setPreReleaseVersion(java.lang.String preRelease)
preRelease - the string representation of the pre-release versionpublic Version.Builder setBuildMetadata(java.lang.String build)
build - the string representation of the build metadatapublic Version build()
Version object.Version instanceParseException - when invalid version string is providedUnexpectedCharacterException - is a special case of ParseException