@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutablePluginCache extends PluginCache
PluginCache.
Use the builder to create immutable instances:
ImmutablePluginCache.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutablePluginCache.Builder
Builds instances of type
ImmutablePluginCache. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutablePluginCache.Builder |
builder()
Creates a builder for
ImmutablePluginCache. |
static ImmutablePluginCache |
copyOf(PluginCache instance)
Creates an immutable copy of a
PluginCache value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutablePluginCache that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
pluginJars, pluginDescriptors. |
com.google.common.collect.ImmutableList<PluginDescriptor> |
pluginDescriptors() |
com.google.common.collect.ImmutableList<File> |
pluginJars() |
String |
toString()
Prints the immutable value
PluginCache with attribute values. |
ImmutablePluginCache |
withPluginDescriptors(Iterable<? extends PluginDescriptor> elements)
Copy the current immutable object with elements that replace the content of
pluginDescriptors. |
ImmutablePluginCache |
withPluginDescriptors(PluginDescriptor... elements)
Copy the current immutable object with elements that replace the content of
pluginDescriptors. |
ImmutablePluginCache |
withPluginJars(File... elements)
Copy the current immutable object with elements that replace the content of
pluginJars. |
ImmutablePluginCache |
withPluginJars(Iterable<? extends File> elements)
Copy the current immutable object with elements that replace the content of
pluginJars. |
createpublic static ImmutablePluginCache.Builder builder()
ImmutablePluginCache.
ImmutablePluginCache.builder()
.addPluginJars|addAllPluginJars(java.io.File) // pluginJars elements
.addPluginDescriptors|addAllPluginDescriptors(org.glowroot.agent.config.PluginDescriptor) // pluginDescriptors elements
.build();
public static ImmutablePluginCache copyOf(PluginCache instance)
PluginCache 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)
ImmutablePluginCache that have equal attribute values.public int hashCode()
pluginJars, pluginDescriptors.public com.google.common.collect.ImmutableList<PluginDescriptor> pluginDescriptors()
pluginDescriptors in class PluginCachepluginDescriptors attributepublic com.google.common.collect.ImmutableList<File> pluginJars()
pluginJars in class PluginCachepluginJars attributepublic String toString()
PluginCache with attribute values.public final ImmutablePluginCache withPluginDescriptors(Iterable<? extends PluginDescriptor> elements)
pluginDescriptors.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of pluginDescriptors elements to setthis objectpublic final ImmutablePluginCache withPluginDescriptors(PluginDescriptor... elements)
pluginDescriptors.elements - The elements to setthis objectpublic final ImmutablePluginCache withPluginJars(File... elements)
pluginJars.elements - The elements to setthis objectpublic final ImmutablePluginCache withPluginJars(Iterable<? extends File> elements)
pluginJars.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of pluginJars elements to setthis objectCopyright © 2011–2020 Glowroot contributors. All rights reserved.