@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutablePluginConfig extends PluginConfig
PluginConfig.
Use the builder to create immutable instances:
ImmutablePluginConfig.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutablePluginConfig.Builder
Builds instances of type
ImmutablePluginConfig. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutablePluginConfig.Builder |
builder()
Creates a builder for
ImmutablePluginConfig. |
static ImmutablePluginConfig |
copyOf(PluginConfig instance)
Creates an immutable copy of a
PluginConfig value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutablePluginConfig that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
pluginDescriptor, id, properties, booleanProperties, stringProperties, doubleProperties, listProperties. |
String |
id() |
PluginDescriptor |
pluginDescriptor() |
com.google.common.collect.ImmutableMap<String,PropertyValue> |
properties() |
String |
toString()
Prints the immutable value
PluginConfig with attribute values. |
ImmutablePluginConfig |
withPluginDescriptor(PluginDescriptor value)
Copy the current immutable object by setting a value for the
pluginDescriptor attribute. |
ImmutablePluginConfig |
withProperties(Map<String,? extends PropertyValue> entries)
Copy the current immutable object by replacing the
properties map with the specified map. |
create, getBooleanProperty, getDoubleProperty, getListProperty, getStringProperty, toProtopublic static ImmutablePluginConfig.Builder builder()
ImmutablePluginConfig.
ImmutablePluginConfig.builder()
.pluginDescriptor(org.glowroot.agent.config.PluginDescriptor) // required pluginDescriptor
.putProperties|putAllProperties(String => org.glowroot.common.config.PropertyValue) // properties mappings
.build();
public static ImmutablePluginConfig copyOf(PluginConfig instance)
PluginConfig 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 boolean equals(@Nullable Object another)
ImmutablePluginConfig that have equal attribute values.public int hashCode()
pluginDescriptor, id, properties, booleanProperties, stringProperties, doubleProperties, listProperties.public String id()
id in class PluginConfigid attributepublic PluginDescriptor pluginDescriptor()
pluginDescriptor in class PluginConfigpluginDescriptor attributepublic com.google.common.collect.ImmutableMap<String,PropertyValue> properties()
properties in class PluginConfigproperties attributepublic String toString()
PluginConfig with attribute values.public final ImmutablePluginConfig withPluginDescriptor(PluginDescriptor value)
pluginDescriptor attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for pluginDescriptorthis objectpublic final ImmutablePluginConfig withProperties(Map<String,? extends PropertyValue> entries)
properties map with the specified map.
Nulls are not permitted as keys or values.
A shallow reference equality check is used to prevent copying of the same value by returning this.entries - The entries to be added to the properties mapthis objectCopyright © 2011–2020 Glowroot contributors. All rights reserved.