@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","ConversationIF"}) @Immutable public final class Conversation extends Object implements ConversationIF
ConversationIF.
Use the builder to create immutable instances:
Conversation.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
Conversation.Builder
Builds instances of type
Conversation. |
| Modifier and Type | Method and Description |
|---|---|
static Conversation.Builder |
builder()
Creates a builder for
Conversation. |
static Conversation |
copyOf(ConversationIF instance)
Creates an immutable copy of a
ConversationIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
Conversation that have equal attribute values. |
String |
getId() |
Optional<String> |
getName() |
int |
hashCode()
Computes a hash code from attributes:
id, name, channel, group, mpim, im, archived, general. |
Optional<Boolean> |
isArchived() |
Optional<Boolean> |
isChannel() |
Optional<Boolean> |
isGeneral() |
Optional<Boolean> |
isGroup() |
Optional<Boolean> |
isIm() |
Optional<Boolean> |
isMpim() |
String |
toString()
Prints the immutable value
Conversation with attribute values. |
Conversation |
withArchived(Boolean value)
Copy the current immutable object by setting a present value for the optional
archived attribute. |
Conversation |
withArchived(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for the
archived attribute. |
Conversation |
withChannel(Boolean value)
Copy the current immutable object by setting a present value for the optional
channel attribute. |
Conversation |
withChannel(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for the
channel attribute. |
Conversation |
withGeneral(Boolean value)
Copy the current immutable object by setting a present value for the optional
general attribute. |
Conversation |
withGeneral(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for the
general attribute. |
Conversation |
withGroup(Boolean value)
Copy the current immutable object by setting a present value for the optional
group attribute. |
Conversation |
withGroup(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for the
group attribute. |
Conversation |
withId(String id)
Copy the current immutable object by setting a value for the
id attribute. |
Conversation |
withIm(Boolean value)
Copy the current immutable object by setting a present value for the optional
im attribute. |
Conversation |
withIm(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for the
im attribute. |
Conversation |
withMpim(Boolean value)
Copy the current immutable object by setting a present value for the optional
mpim attribute. |
Conversation |
withMpim(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for the
mpim attribute. |
Conversation |
withName(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
name attribute. |
Conversation |
withName(String value)
Copy the current immutable object by setting a present value for the optional
name attribute. |
public String getId()
getId in interface ConversationIFid attributepublic Optional<String> getName()
getName in interface ConversationIFname attributepublic Optional<Boolean> isChannel()
isChannel in interface ConversationIFchannel attributepublic Optional<Boolean> isGroup()
isGroup in interface ConversationIFgroup attributepublic Optional<Boolean> isMpim()
isMpim in interface ConversationIFmpim attributepublic Optional<Boolean> isIm()
isIm in interface ConversationIFim attributepublic Optional<Boolean> isArchived()
isArchived in interface ConversationIFarchived attributepublic Optional<Boolean> isGeneral()
isGeneral in interface ConversationIFgeneral attributepublic final Conversation withId(String id)
id attribute.
An equals check used to prevent copying of the same value by returning this.id - A new value for idthis objectpublic final Conversation withName(@Nullable String value)
name attribute.value - The value for name, null is accepted as java.util.Optional.empty()this objectpublic final Conversation withName(Optional<String> optional)
name attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for namethis objectpublic final Conversation withChannel(@Nullable Boolean value)
channel attribute.value - The value for channel, null is accepted as java.util.Optional.empty()this objectpublic final Conversation withChannel(Optional<Boolean> optional)
channel attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for channelthis objectpublic final Conversation withGroup(@Nullable Boolean value)
group attribute.value - The value for group, null is accepted as java.util.Optional.empty()this objectpublic final Conversation withGroup(Optional<Boolean> optional)
group attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for groupthis objectpublic final Conversation withMpim(@Nullable Boolean value)
mpim attribute.value - The value for mpim, null is accepted as java.util.Optional.empty()this objectpublic final Conversation withMpim(Optional<Boolean> optional)
mpim attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for mpimthis objectpublic final Conversation withIm(@Nullable Boolean value)
im attribute.value - The value for im, null is accepted as java.util.Optional.empty()this objectpublic final Conversation withIm(Optional<Boolean> optional)
im attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for imthis objectpublic final Conversation withArchived(@Nullable Boolean value)
archived attribute.value - The value for archived, null is accepted as java.util.Optional.empty()this objectpublic final Conversation withArchived(Optional<Boolean> optional)
archived attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for archivedthis objectpublic final Conversation withGeneral(@Nullable Boolean value)
general attribute.value - The value for general, null is accepted as java.util.Optional.empty()this objectpublic final Conversation withGeneral(Optional<Boolean> optional)
general attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for generalthis objectpublic boolean equals(@Nullable Object another)
Conversation that have equal attribute values.public int hashCode()
id, name, channel, group, mpim, im, archived, general.public String toString()
Conversation with attribute values.public static Conversation copyOf(ConversationIF instance)
ConversationIF 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 Conversation.Builder builder()
Conversation.Copyright © 2019. All rights reserved.