@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","PublishViewParamsIF"}) @Immutable public final class PublishViewParams extends Object implements PublishViewParamsIF
PublishViewParamsIF.
Use the builder to create immutable instances:
PublishViewParams.builder().
Use the static factory method to create immutable instances:
PublishViewParams.of().
| Modifier and Type | Class and Description |
|---|---|
static class |
PublishViewParams.Builder
Builds instances of type
PublishViewParams. |
| Modifier and Type | Method and Description |
|---|---|
static PublishViewParams.Builder |
builder()
Creates a builder for
PublishViewParams. |
static PublishViewParams |
copyOf(PublishViewParamsIF instance)
Creates an immutable copy of a
PublishViewParamsIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
PublishViewParams that have equal attribute values. |
Optional<String> |
getHash() |
String |
getUserId() |
HomeTabViewPayload |
getView() |
int |
hashCode()
Computes a hash code from attributes:
userId, view, hash. |
static PublishViewParams |
of(String userId,
HomeTabViewPayload view)
Construct a new immutable
PublishViewParams instance. |
String |
toString()
Prints the immutable value
PublishViewParams with attribute values. |
PublishViewParams |
withHash(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
hash attribute. |
PublishViewParams |
withHash(String value)
Copy the current immutable object by setting a present value for the optional
hash attribute. |
PublishViewParams |
withUserId(String userId)
Copy the current immutable object by setting a value for the
userId attribute. |
PublishViewParams |
withView(HomeTabViewPayload view)
Copy the current immutable object by setting a value for the
view attribute. |
public String getUserId()
getUserId in interface PublishViewParamsIFuserId attributepublic HomeTabViewPayload getView()
getView in interface PublishViewParamsIFview attributepublic Optional<String> getHash()
getHash in interface PublishViewParamsIFhash attributepublic final PublishViewParams withUserId(String userId)
userId attribute.
An equals check used to prevent copying of the same value by returning this.userId - A new value for userIdthis objectpublic final PublishViewParams withView(HomeTabViewPayload view)
view attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.view - A new value for viewthis objectpublic final PublishViewParams withHash(@Nullable String value)
hash attribute.value - The value for hash, null is accepted as java.util.Optional.empty()this objectpublic final PublishViewParams withHash(Optional<String> optional)
hash attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for hashthis objectpublic boolean equals(@Nullable Object another)
PublishViewParams that have equal attribute values.public int hashCode()
userId, view, hash.public String toString()
PublishViewParams with attribute values.public static PublishViewParams of(String userId, HomeTabViewPayload view)
PublishViewParams instance.userId - The value for the userId attributeview - The value for the view attributepublic static PublishViewParams copyOf(PublishViewParamsIF instance)
PublishViewParamsIF 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 PublishViewParams.Builder builder()
PublishViewParams.Copyright © 2020. All rights reserved.