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 TypeMethodDescriptionbooleanReturn theVersionPropertyornullif this reference is not a property.getValue()Return the version ofnullif this reference is backed by a property.inthashCode()booleanSpecify if this reference defines a property.static VersionReferenceofProperty(VersionProperty property) static VersionReferenceofProperty(String internalProperty) static VersionReferencetoString()
-
Method Details
-
ofProperty
-
ofProperty
-
ofValue
-
isProperty
public boolean isProperty()Specify if this reference defines a property.- Returns:
trueif this version is backed by a property
-
getProperty
Return theVersionPropertyornullif this reference is not a property.- Returns:
- the version property or
null
-
getValue
Return the version ofnullif this reference is backed by a property.- Returns:
- the version or
null
-
equals
-
hashCode
public int hashCode() -
toString
-