@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableLazyDefinedClass extends Object implements org.glowroot.agent.weaving.ClassLoaders.LazyDefinedClass
ClassLoaders.LazyDefinedClass.
Use the builder to create immutable instances:
ImmutableLazyDefinedClass.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableLazyDefinedClass.Builder
Builds instances of type
ImmutableLazyDefinedClass. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableLazyDefinedClass.Builder |
builder()
Creates a builder for
ImmutableLazyDefinedClass. |
byte[] |
bytes() |
static ImmutableLazyDefinedClass |
copyOf(org.glowroot.agent.weaving.ClassLoaders.LazyDefinedClass instance)
Creates an immutable copy of a
ClassLoaders.LazyDefinedClass value. |
com.google.common.collect.ImmutableList<org.glowroot.agent.weaving.ClassLoaders.LazyDefinedClass> |
dependencies() |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableLazyDefinedClass that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
type, bytes, dependencies. |
String |
toString()
Prints the immutable value
LazyDefinedClass with attribute values. |
org.objectweb.asm.Type |
type() |
ImmutableLazyDefinedClass |
withBytes(byte... elements)
Copy the current immutable object with elements that replace the content of
bytes. |
ImmutableLazyDefinedClass |
withDependencies(org.glowroot.agent.weaving.ClassLoaders.LazyDefinedClass... elements)
Copy the current immutable object with elements that replace the content of
dependencies. |
ImmutableLazyDefinedClass |
withDependencies(Iterable<? extends org.glowroot.agent.weaving.ClassLoaders.LazyDefinedClass> elements)
Copy the current immutable object with elements that replace the content of
dependencies. |
ImmutableLazyDefinedClass |
withType(org.objectweb.asm.Type value)
Copy the current immutable object by setting a value for the
type attribute. |
public static ImmutableLazyDefinedClass.Builder builder()
ImmutableLazyDefinedClass.
ImmutableLazyDefinedClass.builder()
.type(org.objectweb.asm.Type) // required type
.bytes(byte) // required bytes
.addDependencies|addAllDependencies(org.glowroot.agent.weaving.ClassLoaders.LazyDefinedClass) // dependencies elements
.build();
public byte[] bytes()
bytes in interface org.glowroot.agent.weaving.ClassLoaders.LazyDefinedClassbytes arraypublic static ImmutableLazyDefinedClass copyOf(org.glowroot.agent.weaving.ClassLoaders.LazyDefinedClass instance)
ClassLoaders.LazyDefinedClass 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 com.google.common.collect.ImmutableList<org.glowroot.agent.weaving.ClassLoaders.LazyDefinedClass> dependencies()
dependencies in interface org.glowroot.agent.weaving.ClassLoaders.LazyDefinedClassdependencies attributepublic boolean equals(@Nullable Object another)
ImmutableLazyDefinedClass that have equal attribute values.public int hashCode()
type, bytes, dependencies.public String toString()
LazyDefinedClass with attribute values.public org.objectweb.asm.Type type()
type in interface org.glowroot.agent.weaving.ClassLoaders.LazyDefinedClasstype attributepublic final ImmutableLazyDefinedClass withBytes(byte... elements)
bytes.
The array is cloned before being saved as attribute values.elements - The non-null elements for bytesthis objectpublic final ImmutableLazyDefinedClass withDependencies(org.glowroot.agent.weaving.ClassLoaders.LazyDefinedClass... elements)
dependencies.elements - The elements to setthis objectpublic final ImmutableLazyDefinedClass withDependencies(Iterable<? extends org.glowroot.agent.weaving.ClassLoaders.LazyDefinedClass> elements)
dependencies.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of dependencies elements to setthis objectpublic final ImmutableLazyDefinedClass withType(org.objectweb.asm.Type value)
type attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for typethis objectCopyright © 2011–2020 Glowroot contributors. All rights reserved.