Class VersionReference

java.lang.Object
io.spring.initializr.generator.version.VersionReference

public final class VersionReference extends Object
A version reference to either a property or an actual version.
Author:
Stephane Nicoll
  • Method Details

    • ofProperty

      public static VersionReference ofProperty(VersionProperty property)
    • ofProperty

      public static VersionReference ofProperty(String internalProperty)
    • ofValue

      public static VersionReference ofValue(String value)
    • isProperty

      public boolean isProperty()
      Specify if this reference defines a property.
      Returns:
      true if this version is backed by a property
    • getProperty

      public VersionProperty getProperty()
      Return the VersionProperty or null if this reference is not a property.
      Returns:
      the version property or null
    • getValue

      public String getValue()
      Return the version of null if this reference is backed by a property.
      Returns:
      the version or null
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object