@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableGroup extends Object implements Plugin.Group
Plugin.Group.
Use the builder to create immutable instances:
ImmutableGroup.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableGroup.Builder
Builds instances of type
ImmutableGroup. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableGroup.Builder |
builder()
Creates a builder for
ImmutableGroup. |
static ImmutableGroup |
copyOf(Plugin.Group instance)
Creates an immutable copy of a
Plugin.Group value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableGroup that have equal attribute values. |
com.google.common.collect.ImmutableList<Plugin.Item> |
getItems() |
String |
getName() |
int |
hashCode()
Computes a hash code from attributes:
name, items. |
String |
toString()
Prints the immutable value
Group with attribute values. |
ImmutableGroup |
withItems(Iterable<? extends Plugin.Item> elements)
Copy the current immutable object with elements that replace the content of
items. |
ImmutableGroup |
withItems(Plugin.Item... elements)
Copy the current immutable object with elements that replace the content of
items. |
ImmutableGroup |
withName(String value)
Copy the current immutable object by setting a value for the
name attribute. |
public String getName()
getName in interface Plugin.Groupname attributepublic com.google.common.collect.ImmutableList<Plugin.Item> getItems()
getItems in interface Plugin.Groupitems attributepublic final ImmutableGroup 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 ImmutableGroup withItems(Plugin.Item... elements)
items.elements - The elements to setthis objectpublic final ImmutableGroup withItems(Iterable<? extends Plugin.Item> elements)
items.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of items elements to setthis objectpublic boolean equals(@Nullable Object another)
ImmutableGroup that have equal attribute values.public int hashCode()
name, items.public String toString()
Group with attribute values.public static ImmutableGroup copyOf(Plugin.Group instance)
Plugin.Group 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 ImmutableGroup.Builder builder()
ImmutableGroup.
ImmutableGroup.builder()
.name(String) // required name
.addItems|addAllItems(com.github.jcustenborder.kafka.connect.utils.templates.Plugin.Item) // items elements
.build();
Copyright © 2016–2025. All rights reserved.