@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableActor extends Object implements Actor
Actor.
Use the builder to create immutable instances:
ImmutableActor.builder().
Use the static factory method to create immutable instances:
ImmutableActor.of().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableActor.Builder
Builds instances of type
ImmutableActor. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableActor.Builder |
builder()
Creates a builder for
ImmutableActor. |
static ImmutableActor |
copyOf(Actor instance)
Creates an immutable copy of a
Actor value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableActor that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
roleName. |
static ImmutableActor |
of(String roleName)
Construct a new immutable
Actor instance. |
String |
roleName() |
String |
toString()
Prints the immutable value
Actor with attribute values. |
ImmutableActor |
withRoleName(String value)
Copy the current immutable object by setting a value for the
roleName attribute. |
public String roleName()
public final ImmutableActor withRoleName(String value)
roleName attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for roleNamethis objectpublic boolean equals(@Nullable Object another)
ImmutableActor that have equal attribute values.public int hashCode()
roleName.public String toString()
Actor with attribute values.public static ImmutableActor of(String roleName)
Actor instance.roleName - The value for the roleName attributepublic static ImmutableActor copyOf(Actor instance)
Actor 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 ImmutableActor.Builder builder()
ImmutableActor.
ImmutableActor.builder()
.roleName(String) // required roleName
.build();
Copyright © 2022. All rights reserved.