Class ImmutableRoleActorBean
java.lang.Object
com.riadalabs.jira.plugins.insight.services.model.RoleActorBean
com.riadalabs.jira.plugins.insight.services.model.ImmutableRoleActorBean
- All Implemented Interfaces:
Serializable
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableRoleActorBean
extends RoleActorBean
Immutable implementation of
RoleActorBean
.
Use the builder to create immutable instances:
ImmutableRoleActorBean.builder()
.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutableRoleActorBean
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forImmutableRoleActorBean
.static ImmutableRoleActorBean
copyOf
(RoleActorBean instance) Creates an immutable copy of aRoleActorBean
value.boolean
This instance is equal to all instances ofImmutableRoleActorBean
that have equal attribute values.getId()
getType()
int
hashCode()
Computes a hash code from attributes:id
,type
,typeParameter
.toString()
Prints the immutable valueRoleActorBean
with attribute values.final ImmutableRoleActorBean
Copy the current immutable object by setting a value for theid
attribute.final ImmutableRoleActorBean
Copy the current immutable object by setting a value for thetype
attribute.final ImmutableRoleActorBean
withTypeParameter
(String value) Copy the current immutable object by setting a value for thetypeParameter
attribute.
-
Method Details
-
getId
- Specified by:
getId
in classRoleActorBean
- Returns:
- The value of the
id
attribute
-
getType
- Specified by:
getType
in classRoleActorBean
- Returns:
- The value of the
type
attribute
-
getTypeParameter
- Specified by:
getTypeParameter
in classRoleActorBean
- Returns:
- The value of the
typeParameter
attribute
-
withId
Copy the current immutable object by setting a value for theid
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for id (can benull
)- Returns:
- A modified copy of the
this
object
-
withType
Copy the current immutable object by setting a value for thetype
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for type- Returns:
- A modified copy of the
this
object
-
withTypeParameter
Copy the current immutable object by setting a value for thetypeParameter
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for typeParameter- Returns:
- A modified copy of the
this
object
-
equals
This instance is equal to all instances ofImmutableRoleActorBean
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:id
,type
,typeParameter
. -
toString
Prints the immutable valueRoleActorBean
with attribute values. -
copyOf
Creates an immutable copy of aRoleActorBean
value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance
- The instance to copy- Returns:
- A copied immutable RoleActorBean instance
-
builder
Creates a builder forImmutableRoleActorBean
.ImmutableRoleActorBean.builder() .setId(Integer | null) // nullable
id
.setType(String) // requiredtype
.setTypeParameter(String) // requiredtypeParameter
.build();- Returns:
- A new ImmutableRoleActorBean builder
-