@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutablePluginDescriptor extends PluginDescriptor
PluginDescriptor.
Use the builder to create immutable instances:
ImmutablePluginDescriptor.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutablePluginDescriptor.Builder
Builds instances of type
ImmutablePluginDescriptor. |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.ImmutableList<String> |
aspects() |
static ImmutablePluginDescriptor.Builder |
builder()
Creates a builder for
ImmutablePluginDescriptor. |
boolean |
collocate() |
static ImmutablePluginDescriptor |
copyOf(PluginDescriptor instance)
Creates an immutable copy of a
PluginDescriptor value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutablePluginDescriptor that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
id, name, properties, instrumentationConfigs, aspects, collocate, pluginJar. |
String |
id() |
com.google.common.collect.ImmutableList<InstrumentationConfig> |
instrumentationConfigs() |
String |
name() |
File |
pluginJar() |
com.google.common.collect.ImmutableList<PropertyDescriptor> |
properties() |
String |
toString()
Prints the immutable value
PluginDescriptor with attribute values. |
ImmutablePluginDescriptor |
withAspects(Iterable<String> elements)
Copy the current immutable object with elements that replace the content of
aspects. |
ImmutablePluginDescriptor |
withAspects(String... elements)
Copy the current immutable object with elements that replace the content of
aspects. |
ImmutablePluginDescriptor |
withCollocate(boolean value)
Copy the current immutable object by setting a value for the
collocate attribute. |
ImmutablePluginDescriptor |
withId(String value)
Copy the current immutable object by setting a value for the
id attribute. |
ImmutablePluginDescriptor |
withInstrumentationConfigs(InstrumentationConfig... elements)
Copy the current immutable object with elements that replace the content of
instrumentationConfigs. |
ImmutablePluginDescriptor |
withInstrumentationConfigs(Iterable<? extends InstrumentationConfig> elements)
Copy the current immutable object with elements that replace the content of
instrumentationConfigs. |
ImmutablePluginDescriptor |
withName(String value)
Copy the current immutable object by setting a value for the
name attribute. |
ImmutablePluginDescriptor |
withPluginJar(File value)
Copy the current immutable object by setting a value for the
pluginJar attribute. |
ImmutablePluginDescriptor |
withProperties(Iterable<? extends PropertyDescriptor> elements)
Copy the current immutable object with elements that replace the content of
properties. |
ImmutablePluginDescriptor |
withProperties(PropertyDescriptor... elements)
Copy the current immutable object with elements that replace the content of
properties. |
readValue, writeValuepublic com.google.common.collect.ImmutableList<String> aspects()
aspects in class PluginDescriptoraspects attributepublic static ImmutablePluginDescriptor.Builder builder()
ImmutablePluginDescriptor.
ImmutablePluginDescriptor.builder()
.id(String) // required id
.name(String) // required name
.addProperties|addAllProperties(org.glowroot.agent.config.PropertyDescriptor) // properties elements
.addInstrumentationConfigs|addAllInstrumentationConfigs(org.glowroot.common.config.InstrumentationConfig) // instrumentationConfigs elements
.addAspects|addAllAspects(String) // aspects elements
.collocate(boolean) // optional collocate
.pluginJar(java.io.File | null) // nullable pluginJar
.build();
public boolean collocate()
collocate in class PluginDescriptorcollocate attributepublic static ImmutablePluginDescriptor copyOf(PluginDescriptor instance)
PluginDescriptor 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)
ImmutablePluginDescriptor that have equal attribute values.public int hashCode()
id, name, properties, instrumentationConfigs, aspects, collocate, pluginJar.public String id()
id in class PluginDescriptorid attributepublic com.google.common.collect.ImmutableList<InstrumentationConfig> instrumentationConfigs()
instrumentationConfigs in class PluginDescriptorinstrumentationConfigs attributepublic String name()
name in class PluginDescriptorname attribute@Nullable public File pluginJar()
pluginJar in class PluginDescriptorpluginJar attributepublic com.google.common.collect.ImmutableList<PropertyDescriptor> properties()
properties in class PluginDescriptorproperties attributepublic String toString()
PluginDescriptor with attribute values.public final ImmutablePluginDescriptor withAspects(Iterable<String> elements)
aspects.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of aspects elements to setthis objectpublic final ImmutablePluginDescriptor withAspects(String... elements)
aspects.elements - The elements to setthis objectpublic final ImmutablePluginDescriptor withCollocate(boolean value)
collocate attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for collocatethis objectpublic final ImmutablePluginDescriptor withId(String value)
id attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for idthis objectpublic final ImmutablePluginDescriptor withInstrumentationConfigs(InstrumentationConfig... elements)
instrumentationConfigs.elements - The elements to setthis objectpublic final ImmutablePluginDescriptor withInstrumentationConfigs(Iterable<? extends InstrumentationConfig> elements)
instrumentationConfigs.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of instrumentationConfigs elements to setthis objectpublic final ImmutablePluginDescriptor 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 ImmutablePluginDescriptor withPluginJar(@Nullable File value)
pluginJar attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for pluginJar (can be null)this objectpublic final ImmutablePluginDescriptor withProperties(Iterable<? extends PropertyDescriptor> elements)
properties.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of properties elements to setthis objectpublic final ImmutablePluginDescriptor withProperties(PropertyDescriptor... elements)
properties.elements - The elements to setthis objectCopyright © 2011–2020 Glowroot contributors. All rights reserved.