java.lang.Object
io.aiven.commons.kafka.config.SinceInfo
Contains the information about when this option was added. Since options can
be added at various stages and by different libraries and because the "since"
field is to assist users in determining at what version an option became
available in the final connector the SinceInfo tracks the module and version
where the option was added but provides a mechanism to override the display
in the final configuration.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder for SinceInfo and the SinceInfo override.static final recordRecord of the data to display.static final classMatches a range of SinceInfo records. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.maven.artifact.versioning.ArtifactVersionGets the parsed ArtifactVersion for this sinceInfo.static SinceInfo.Builderbuilder()The builder for SinceInfo and SinceInfo overrides.voidsetOverride(SinceInfo.Builder builder) Sets the override for this SinceInfo.voidsetOverride(Map<SinceInfo.OverrideRange, SinceInfo.Data> overrideMap) Sets the override from the Builder associated with the matching OverrideRange in the overrideMap.Sets the override to be just the version of this component.toString()
-
Method Details
-
setOverride
Sets the override for this SinceInfo. The builder must defineversion. ThegroupIdandartifactIdare optional and will be displayed if present.- Parameters:
builder- the builder to define the override.
-
setOverride
Sets the override from the Builder associated with the matching OverrideRange in the overrideMap. If multiple ranges match the last one in the map will be applied.- Parameters:
overrideMap- the map of OverrideRanges and builders to apply.
-
setVersionOnly
Sets the override to be just the version of this component.- Returns:
- this
-
artifactVersion
public org.apache.maven.artifact.versioning.ArtifactVersion artifactVersion()Gets the parsed ArtifactVersion for this sinceInfo.- Returns:
- the parsed ArtifactVersion for this sinceInfo.
-
toString
-
builder
The builder for SinceInfo and SinceInfo overrides.- Returns:
- the Builder.
-