@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableItem extends Object implements Plugin.Item
Plugin.Item.
Use the builder to create immutable instances:
ImmutableItem.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableItem.Builder
Builds instances of type
ImmutableItem. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableItem.Builder |
builder()
Creates a builder for
ImmutableItem. |
static ImmutableItem |
copyOf(Plugin.Item instance)
Creates an immutable copy of a
Plugin.Item value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableItem that have equal attribute values. |
Object |
getDefaultValue() |
String |
getDoc() |
String |
getGroup() |
org.apache.kafka.common.config.ConfigDef.Importance |
getImportance() |
String |
getName() |
org.apache.kafka.common.config.ConfigDef.Type |
getType() |
org.apache.kafka.common.config.ConfigDef.Validator |
getValidator() |
int |
hashCode()
Computes a hash code from attributes:
name, importance, doc, defaultValue, validator, type, group, isRequired. |
boolean |
isRequired() |
String |
toString()
Prints the immutable value
Item with attribute values. |
ImmutableItem |
withDefaultValue(Object value)
Copy the current immutable object by setting a value for the
defaultValue attribute. |
ImmutableItem |
withDoc(String value)
Copy the current immutable object by setting a value for the
doc attribute. |
ImmutableItem |
withGroup(String value)
Copy the current immutable object by setting a value for the
group attribute. |
ImmutableItem |
withImportance(org.apache.kafka.common.config.ConfigDef.Importance value)
Copy the current immutable object by setting a value for the
importance attribute. |
ImmutableItem |
withIsRequired(boolean value)
Copy the current immutable object by setting a value for the
isRequired attribute. |
ImmutableItem |
withName(String value)
Copy the current immutable object by setting a value for the
name attribute. |
ImmutableItem |
withType(org.apache.kafka.common.config.ConfigDef.Type value)
Copy the current immutable object by setting a value for the
type attribute. |
ImmutableItem |
withValidator(org.apache.kafka.common.config.ConfigDef.Validator value)
Copy the current immutable object by setting a value for the
validator attribute. |
public String getName()
getName in interface Plugin.Itemname attributepublic org.apache.kafka.common.config.ConfigDef.Importance getImportance()
getImportance in interface Plugin.Itemimportance attributepublic String getDoc()
getDoc in interface Plugin.Itemdoc attribute@Nullable public Object getDefaultValue()
getDefaultValue in interface Plugin.ItemdefaultValue attribute@Nullable public org.apache.kafka.common.config.ConfigDef.Validator getValidator()
getValidator in interface Plugin.Itemvalidator attributepublic org.apache.kafka.common.config.ConfigDef.Type getType()
getType in interface Plugin.Itemtype attributepublic String getGroup()
getGroup in interface Plugin.Itemgroup attributepublic boolean isRequired()
isRequired in interface Plugin.ItemisRequired attributepublic final ImmutableItem withName(String value)
name attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for namethis objectpublic final ImmutableItem withImportance(org.apache.kafka.common.config.ConfigDef.Importance value)
importance attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for importancethis objectpublic final ImmutableItem withDoc(String value)
doc attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for docthis objectpublic final ImmutableItem withDefaultValue(@Nullable Object value)
defaultValue attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for defaultValue (can be null)this objectpublic final ImmutableItem withValidator(@Nullable org.apache.kafka.common.config.ConfigDef.Validator value)
validator attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for validator (can be null)this objectpublic final ImmutableItem withType(org.apache.kafka.common.config.ConfigDef.Type value)
type attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for typethis objectpublic final ImmutableItem withGroup(String value)
group attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for groupthis objectpublic final ImmutableItem withIsRequired(boolean value)
isRequired attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for isRequiredthis objectpublic boolean equals(@Nullable Object another)
ImmutableItem that have equal attribute values.public int hashCode()
name, importance, doc, defaultValue, validator, type, group, isRequired.public String toString()
Item with attribute values.public static ImmutableItem copyOf(Plugin.Item instance)
Plugin.Item 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 ImmutableItem.Builder builder()
ImmutableItem.
ImmutableItem.builder()
.name(String) // required name
.importance(org.apache.kafka.common.config.ConfigDef.Importance) // required importance
.doc(String) // required doc
.defaultValue(Object | null) // nullable defaultValue
.validator(org.apache.kafka.common.config.ConfigDef.Validator | null) // nullable validator
.type(org.apache.kafka.common.config.ConfigDef.Type) // required type
.group(String) // required group
.isRequired(boolean) // required isRequired
.build();
Copyright © 2016–2025. All rights reserved.