| Constructor and Description |
|---|
Builder()
Constructs a
Builder instance. |
Builder(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(String build)
Sets the build metadata.
|
Version.Builder |
setNormalVersion(String normal)
Sets the normal version.
|
Version.Builder |
setPreReleaseVersion(String preRelease)
Sets the pre-release version.
|
public Builder()
Builder instance.public Builder(String normal)
Builder instance with the
string representation of the normal version.normal - the string representation of the normal versionpublic Version.Builder setNormalVersion(String normal)
normal - the string representation of the normal versionpublic Version.Builder setPreReleaseVersion(String preRelease)
preRelease - the string representation of the pre-release versionpublic Version.Builder setBuildMetadata(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 ParseExceptionCopyright © 2015. All rights reserved.