Class ImmutableWatcherBean
java.lang.Object
com.riadalabs.jira.plugins.insight.services.model.WatcherBean
com.riadalabs.jira.plugins.insight.services.model.ImmutableWatcherBean
- All Implemented Interfaces:
Serializable
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableWatcherBean
extends WatcherBean
Immutable implementation of
WatcherBean
.
Use the builder to create immutable instances:
ImmutableWatcherBean.builder()
.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutableWatcherBean
. -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableWatcherBean.Builder
builder()
Creates a builder forImmutableWatcherBean
.static ImmutableWatcherBean
copyOf
(WatcherBean instance) Creates an immutable copy of aWatcherBean
value.boolean
This instance is equal to all instances ofImmutableWatcherBean
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:objectId
,userKey
.toString()
Prints the immutable valueWatcherBean
with attribute values.final ImmutableWatcherBean
withObjectId
(Integer value) Copy the current immutable object by setting a value for theobjectId
attribute.final ImmutableWatcherBean
withUserKey
(String value) Copy the current immutable object by setting a value for theuserKey
attribute.
-
Method Details
-
getObjectId
- Specified by:
getObjectId
in classWatcherBean
- Returns:
- The value of the
objectId
attribute
-
getUserKey
- Specified by:
getUserKey
in classWatcherBean
- Returns:
- The value of the
userKey
attribute
-
withObjectId
Copy the current immutable object by setting a value for theobjectId
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for objectId- Returns:
- A modified copy of the
this
object
-
withUserKey
Copy the current immutable object by setting a value for theuserKey
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for userKey- Returns:
- A modified copy of the
this
object
-
equals
This instance is equal to all instances ofImmutableWatcherBean
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:objectId
,userKey
. -
toString
Prints the immutable valueWatcherBean
with attribute values. -
copyOf
Creates an immutable copy of aWatcherBean
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 WatcherBean instance
-
builder
Creates a builder forImmutableWatcherBean
.ImmutableWatcherBean.builder() .setObjectId(Integer) // required
objectId
.setUserKey(String) // requireduserKey
.build();- Returns:
- A new ImmutableWatcherBean builder
-