@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableRoleActorBean extends RoleActorBean
RoleActorBean
.
Use the builder to create immutable instances:
ImmutableRoleActorBean.builder()
.
Modifier and Type | Class and Description |
---|---|
static class |
ImmutableRoleActorBean.Builder
Builds instances of type
ImmutableRoleActorBean . |
Modifier and Type | Method and Description |
---|---|
static ImmutableRoleActorBean.Builder |
builder()
Creates a builder for
ImmutableRoleActorBean . |
static ImmutableRoleActorBean |
copyOf(RoleActorBean instance)
Creates an immutable copy of a
RoleActorBean value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableRoleActorBean that have equal attribute values. |
Integer |
getId() |
String |
getType() |
String |
getTypeParameter() |
int |
hashCode()
Computes a hash code from attributes:
id , type , typeParameter . |
String |
toString()
Prints the immutable value
RoleActorBean with attribute values. |
ImmutableRoleActorBean |
withId(Integer value)
Copy the current immutable object by setting a value for the
id attribute. |
ImmutableRoleActorBean |
withType(String value)
Copy the current immutable object by setting a value for the
type attribute. |
ImmutableRoleActorBean |
withTypeParameter(String value)
Copy the current immutable object by setting a value for the
typeParameter attribute. |
@Nullable public Integer getId()
getId
in class RoleActorBean
id
attributepublic String getType()
getType
in class RoleActorBean
type
attributepublic String getTypeParameter()
getTypeParameter
in class RoleActorBean
typeParameter
attributepublic final ImmutableRoleActorBean withId(@Nullable Integer value)
id
attribute.
An equals check used to prevent copying of the same value by returning this
.value
- A new value for id (can be null
)this
objectpublic final ImmutableRoleActorBean withType(String value)
type
attribute.
An equals check used to prevent copying of the same value by returning this
.value
- A new value for typethis
objectpublic final ImmutableRoleActorBean withTypeParameter(String value)
typeParameter
attribute.
An equals check used to prevent copying of the same value by returning this
.value
- A new value for typeParameterthis
objectpublic boolean equals(@Nullable Object another)
ImmutableRoleActorBean
that have equal attribute values.public int hashCode()
id
, type
, typeParameter
.public String toString()
RoleActorBean
with attribute values.public static ImmutableRoleActorBean copyOf(RoleActorBean instance)
RoleActorBean
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 ImmutableRoleActorBean.Builder builder()
ImmutableRoleActorBean
.
ImmutableRoleActorBean.builder() .setId(Integer | null) // nullableid
.setType(String) // requiredtype
.setTypeParameter(String) // requiredtypeParameter
.build();
Copyright © 2023 Atlassian. All rights reserved.