@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableTransformation extends Object implements Plugin.Transformation
Plugin.Transformation.
Use the builder to create immutable instances:
ImmutableTransformation.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableTransformation.Builder
Builds instances of type
ImmutableTransformation. |
Notes.Section| Modifier and Type | Method and Description |
|---|---|
static ImmutableTransformation.Builder |
builder()
Creates a builder for
ImmutableTransformation. |
static ImmutableTransformation |
copyOf(Plugin.Transformation instance)
Creates an immutable copy of a
Plugin.Transformation value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableTransformation that have equal attribute values. |
Class |
getCls() |
Plugin.Configuration |
getConfiguration() |
String |
getDanger() |
String |
getDescription() |
com.google.common.collect.ImmutableList<String> |
getExamples() |
String |
getIcon() |
String |
getImportant() |
String |
getIntroduction() |
Class |
getKey() |
String |
getNote() |
com.google.common.collect.ImmutableList<Notes.Section> |
getSections() |
String |
getTip() |
String |
getTitle() |
Class |
getValue() |
String |
getWarning() |
int |
hashCode()
Computes a hash code from attributes:
warning, tip, important, danger, note, title, description, icon, introduction, sections, cls, configuration, examples, isKeyValue, key, value. |
boolean |
isKeyValue() |
String |
toString()
Prints the immutable value
Transformation with attribute values. |
ImmutableTransformation |
withCls(Class value)
Copy the current immutable object by setting a value for the
cls attribute. |
ImmutableTransformation |
withConfiguration(Plugin.Configuration value)
Copy the current immutable object by setting a value for the
configuration attribute. |
ImmutableTransformation |
withDanger(String value)
Copy the current immutable object by setting a value for the
danger attribute. |
ImmutableTransformation |
withDescription(String value)
Copy the current immutable object by setting a value for the
description attribute. |
ImmutableTransformation |
withExamples(Iterable<String> elements)
Copy the current immutable object with elements that replace the content of
examples. |
ImmutableTransformation |
withExamples(String... elements)
Copy the current immutable object with elements that replace the content of
examples. |
ImmutableTransformation |
withIcon(String value)
Copy the current immutable object by setting a value for the
icon attribute. |
ImmutableTransformation |
withImportant(String value)
Copy the current immutable object by setting a value for the
important attribute. |
ImmutableTransformation |
withIntroduction(String value)
Copy the current immutable object by setting a value for the
introduction attribute. |
ImmutableTransformation |
withIsKeyValue(boolean value)
Copy the current immutable object by setting a value for the
isKeyValue attribute. |
ImmutableTransformation |
withKey(Class value)
Copy the current immutable object by setting a value for the
key attribute. |
ImmutableTransformation |
withNote(String value)
Copy the current immutable object by setting a value for the
note attribute. |
ImmutableTransformation |
withSections(Iterable<? extends Notes.Section> elements)
Copy the current immutable object with elements that replace the content of
sections. |
ImmutableTransformation |
withSections(Notes.Section... elements)
Copy the current immutable object with elements that replace the content of
sections. |
ImmutableTransformation |
withTip(String value)
Copy the current immutable object by setting a value for the
tip attribute. |
ImmutableTransformation |
withTitle(String value)
Copy the current immutable object by setting a value for the
title attribute. |
ImmutableTransformation |
withValue(Class value)
Copy the current immutable object by setting a value for the
value attribute. |
ImmutableTransformation |
withWarning(String value)
Copy the current immutable object by setting a value for the
warning attribute. |
@Nullable public String getWarning()
getWarning in interface Noteswarning attribute@Nullable public String getImportant()
getImportant in interface Notesimportant attribute@Nullable public String getDescription()
getDescription in interface Notesdescription attribute@Nullable public String getIntroduction()
getIntroduction in interface Notesintroduction attribute@Nullable public com.google.common.collect.ImmutableList<Notes.Section> getSections()
getSections in interface Notessections attributepublic Class getCls()
getCls in interface Plugin.Configurablecls attribute@Nullable public Plugin.Configuration getConfiguration()
getConfiguration in interface Plugin.Configurableconfiguration attributepublic com.google.common.collect.ImmutableList<String> getExamples()
getExamples in interface Plugin.Configurableexamples attributepublic boolean isKeyValue()
isKeyValue in interface Plugin.TransformationisKeyValue attribute@Nullable public Class getKey()
getKey in interface Plugin.Transformationkey attribute@Nullable public Class getValue()
getValue in interface Plugin.Transformationvalue attributepublic final ImmutableTransformation withWarning(@Nullable String value)
warning attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for warning (can be null)this objectpublic final ImmutableTransformation withTip(@Nullable String value)
tip attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for tip (can be null)this objectpublic final ImmutableTransformation withImportant(@Nullable String value)
important attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for important (can be null)this objectpublic final ImmutableTransformation withDanger(@Nullable String value)
danger attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for danger (can be null)this objectpublic final ImmutableTransformation withNote(@Nullable String value)
note attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for note (can be null)this objectpublic final ImmutableTransformation withTitle(@Nullable String value)
title attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for title (can be null)this objectpublic final ImmutableTransformation withDescription(@Nullable String value)
description attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for description (can be null)this objectpublic final ImmutableTransformation withIcon(@Nullable String value)
icon attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for icon (can be null)this objectpublic final ImmutableTransformation withIntroduction(@Nullable String value)
introduction attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for introduction (can be null)this objectpublic final ImmutableTransformation withSections(@Nullable Notes.Section... elements)
sections.elements - The elements to setthis objectpublic final ImmutableTransformation withSections(@Nullable Iterable<? extends Notes.Section> elements)
sections.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of sections elements to setthis objectpublic final ImmutableTransformation withCls(Class value)
cls attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for clsthis objectpublic final ImmutableTransformation withConfiguration(@Nullable Plugin.Configuration value)
configuration attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for configuration (can be null)this objectpublic final ImmutableTransformation withExamples(String... elements)
examples.elements - The elements to setthis objectpublic final ImmutableTransformation withExamples(Iterable<String> elements)
examples.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of examples elements to setthis objectpublic final ImmutableTransformation withIsKeyValue(boolean value)
isKeyValue attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for isKeyValuethis objectpublic final ImmutableTransformation withKey(@Nullable Class value)
key attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for key (can be null)this objectpublic final ImmutableTransformation withValue(@Nullable Class value)
value attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for value (can be null)this objectpublic boolean equals(@Nullable Object another)
ImmutableTransformation that have equal attribute values.public int hashCode()
warning, tip, important, danger, note, title, description, icon, introduction, sections, cls, configuration, examples, isKeyValue, key, value.public String toString()
Transformation with attribute values.public static ImmutableTransformation copyOf(Plugin.Transformation instance)
Plugin.Transformation value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static ImmutableTransformation.Builder builder()
ImmutableTransformation.
ImmutableTransformation.builder()
.warning(String | null) // nullable warning
.tip(String | null) // nullable tip
.important(String | null) // nullable important
.danger(String | null) // nullable danger
.note(String | null) // nullable note
.title(String | null) // nullable title
.description(String | null) // nullable description
.icon(String | null) // nullable icon
.introduction(String | null) // nullable introduction
.sections(List<com.github.jcustenborder.kafka.connect.utils.templates.Notes.Section> | null) // nullable sections
.cls(Class) // required cls
.configuration(com.github.jcustenborder.kafka.connect.utils.templates.Plugin.Configuration | null) // nullable configuration
.addExamples|addAllExamples(String) // examples elements
.isKeyValue(boolean) // required isKeyValue
.key(Class | null) // nullable key
.value(Class | null) // nullable value
.build();
Copyright © 2016–2025. All rights reserved.