Class VersionProperty
java.lang.Object
io.spring.initializr.generator.version.VersionProperty
- All Implemented Interfaces:
Serializable
,Comparable<VersionProperty>
public final class VersionProperty
extends Object
implements Serializable, Comparable<VersionProperty>
Represents a valid property for a version. A property must be lower case and can define
a dot or an hyphen to separate words. For instance, "foo-acme.version",
"foo.acme.version" or "foo-acme-version" are valid properties.
- Author:
- Stephane Nicoll
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionint
boolean
int
hashCode()
boolean
Specify if the property is internally defined and can be tuned according to the build system.static VersionProperty
Create an internalVersionProperty
.static VersionProperty
Create aVersionProperty
.Return a camel cased representation of this instance.toString()
-
Method Details
-
of
Create aVersionProperty
.- Parameters:
property
- the name of the propertyinternal
- whether the property is internal and can be tuned according to the build system- Returns:
- a version property
-
of
Create an internalVersionProperty
.- Parameters:
property
- the name of the property- Returns:
- a version property whose format can be tuned according to the build system
-
isInternal
public boolean isInternal()Specify if the property is internally defined and can be tuned according to the build system.- Returns:
true
if the property is defined within the scope of this project
-
toCamelCaseFormat
Return a camel cased representation of this instance.- Returns:
- the property in camel case format
-
toStandardFormat
-
compareTo
- Specified by:
compareTo
in interfaceComparable<VersionProperty>
-
equals
-
hashCode
public int hashCode() -
toString
-