verfi_2.10.0.1.3.source-code.normalizing.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of semverfi_2.10 Show documentation
Show all versions of semverfi_2.10 Show documentation
Always Faithful, always loyal semantic versions
The newest version!
package semverfi
/**
* Provides a means to render a normal
* version from a preprelease version
*/
trait Normalizing { self: Valid =>
def normalize = self match {
case n: NormalVersion => n
case v: Valid =>
NormalVersion(v.major, v.minor, v.patch)
case invalid => invalid
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy