Class VersionReference
java.lang.Object
io.spring.initializr.generator.version.VersionReference
A version reference to either a property or an actual version.
- Author:
- Stephane Nicoll
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Return theVersionProperty
ornull
if this reference is not a property.getValue()
Return the version ofnull
if this reference is backed by a property.int
hashCode()
boolean
Specify if this reference defines a property.static VersionReference
ofProperty
(VersionProperty property) static VersionReference
ofProperty
(String internalProperty) static VersionReference
toString()
-
Method Details
-
ofProperty
-
ofProperty
-
ofValue
-
isProperty
public boolean isProperty()Specify if this reference defines a property.- Returns:
true
if this version is backed by a property
-
getProperty
Return theVersionProperty
ornull
if this reference is not a property.- Returns:
- the version property or
null
-
getValue
Return the version ofnull
if this reference is backed by a property.- Returns:
- the version or
null
-
equals
-
hashCode
public int hashCode() -
toString
-