@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableWatcherBean extends WatcherBean
WatcherBean
.
Use the builder to create immutable instances:
ImmutableWatcherBean.builder()
.
Modifier and Type | Class and Description |
---|---|
static class |
ImmutableWatcherBean.Builder
Builds instances of type
ImmutableWatcherBean . |
Modifier and Type | Method and Description |
---|---|
static ImmutableWatcherBean.Builder |
builder()
Creates a builder for
ImmutableWatcherBean . |
static ImmutableWatcherBean |
copyOf(WatcherBean instance)
Creates an immutable copy of a
WatcherBean value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableWatcherBean that have equal attribute values. |
Integer |
getObjectId() |
String |
getUserKey() |
int |
hashCode()
Computes a hash code from attributes:
objectId , userKey . |
String |
toString()
Prints the immutable value
WatcherBean with attribute values. |
ImmutableWatcherBean |
withObjectId(Integer value)
Copy the current immutable object by setting a value for the
objectId attribute. |
ImmutableWatcherBean |
withUserKey(String value)
Copy the current immutable object by setting a value for the
userKey attribute. |
public Integer getObjectId()
getObjectId
in class WatcherBean
objectId
attributepublic String getUserKey()
getUserKey
in class WatcherBean
userKey
attributepublic final ImmutableWatcherBean withObjectId(Integer value)
objectId
attribute.
An equals check used to prevent copying of the same value by returning this
.value
- A new value for objectIdthis
objectpublic final ImmutableWatcherBean withUserKey(String value)
userKey
attribute.
An equals check used to prevent copying of the same value by returning this
.value
- A new value for userKeythis
objectpublic boolean equals(@Nullable Object another)
ImmutableWatcherBean
that have equal attribute values.public int hashCode()
objectId
, userKey
.public String toString()
WatcherBean
with attribute values.public static ImmutableWatcherBean copyOf(WatcherBean instance)
WatcherBean
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 ImmutableWatcherBean.Builder builder()
ImmutableWatcherBean
.
ImmutableWatcherBean.builder() .setObjectId(Integer) // requiredobjectId
.setUserKey(String) // requireduserKey
.build();
Copyright © 2024 Atlassian. All rights reserved.