@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","Agent"}) @Immutable public final class ImmutableAgent extends Agent
Agent.
Use the builder to create immutable instances:
ImmutableAgent.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableAgent.Builder
Builds instances of type
ImmutableAgent. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableAgent.Builder |
builder()
Creates a builder for
ImmutableAgent. |
static ImmutableAgent |
copyOf(Agent instance)
Creates an immutable copy of a
Agent value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableAgent that have equal attribute values. |
Config |
getConfig() |
DebugConfig |
getDebugConfig() |
Member |
getMember() |
int |
hashCode()
Computes a hash code from attributes:
config, debugConfig, member. |
String |
toString()
Prints the immutable value
Agent with attribute values. |
ImmutableAgent |
withConfig(Config value)
Copy the current immutable object by setting a value for the
config attribute. |
ImmutableAgent |
withDebugConfig(DebugConfig value)
Copy the current immutable object by setting a value for the
debugConfig attribute. |
ImmutableAgent |
withMember(Member value)
Copy the current immutable object by setting a value for the
member attribute. |
public Config getConfig()
@Nullable public DebugConfig getDebugConfig()
getDebugConfig in class AgentdebugConfig attributepublic Member getMember()
public final ImmutableAgent withConfig(Config value)
config attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for configthis objectpublic final ImmutableAgent withDebugConfig(@Nullable DebugConfig value)
debugConfig attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for debugConfig (can be null)this objectpublic final ImmutableAgent withMember(Member value)
member attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for memberthis objectpublic boolean equals(@Nullable Object another)
ImmutableAgent that have equal attribute values.public int hashCode()
config, debugConfig, member.public String toString()
Agent with attribute values.public static ImmutableAgent copyOf(Agent instance)
Agent 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 static ImmutableAgent.Builder builder()
ImmutableAgent.Copyright © 2018. All rights reserved.