@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutablePendingTrace extends Object implements TraceCollector.PendingTrace
TraceCollector.PendingTrace.
Use the builder to create immutable instances:
ImmutablePendingTrace.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutablePendingTrace.Builder
Builds instances of type
ImmutablePendingTrace. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutablePendingTrace.Builder |
builder()
Creates a builder for
ImmutablePendingTrace. |
static ImmutablePendingTrace |
copyOf(TraceCollector.PendingTrace instance)
Creates an immutable copy of a
TraceCollector.PendingTrace value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutablePendingTrace that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
transaction, slow, partial. |
boolean |
partial() |
boolean |
slow() |
String |
toString()
Prints the immutable value
PendingTrace with attribute values. |
Transaction |
transaction() |
ImmutablePendingTrace |
withPartial(boolean value)
Copy the current immutable object by setting a value for the
partial attribute. |
ImmutablePendingTrace |
withSlow(boolean value)
Copy the current immutable object by setting a value for the
slow attribute. |
ImmutablePendingTrace |
withTransaction(Transaction value)
Copy the current immutable object by setting a value for the
transaction attribute. |
public static ImmutablePendingTrace.Builder builder()
ImmutablePendingTrace.
ImmutablePendingTrace.builder()
.transaction(org.glowroot.agent.impl.Transaction) // required transaction
.slow(boolean) // required slow
.partial(boolean) // required partial
.build();
public static ImmutablePendingTrace copyOf(TraceCollector.PendingTrace instance)
TraceCollector.PendingTrace 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)
ImmutablePendingTrace that have equal attribute values.public int hashCode()
transaction, slow, partial.public boolean partial()
partial in interface TraceCollector.PendingTracepartial attributepublic boolean slow()
slow in interface TraceCollector.PendingTraceslow attributepublic String toString()
PendingTrace with attribute values.public Transaction transaction()
transaction in interface TraceCollector.PendingTracetransaction attributepublic final ImmutablePendingTrace withPartial(boolean value)
partial attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for partialthis objectpublic final ImmutablePendingTrace withSlow(boolean value)
slow attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for slowthis objectpublic final ImmutablePendingTrace withTransaction(Transaction value)
transaction attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for transactionthis objectCopyright © 2011–2020 Glowroot contributors. All rights reserved.