Constructor and Description |
---|
Version.Builder()
Constructs a
Builder instance. |
Version.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 Version.Builder()
Builder
instance.public Version.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 ParseException
Copyright © 2015. All rights reserved.