@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","ConversationsFilterIF"}) @Immutable public final class ConversationsFilter extends Object implements ConversationsFilterIF
ConversationsFilterIF.
Use the builder to create immutable instances:
ConversationsFilter.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ConversationsFilter.Builder
Builds instances of type
ConversationsFilter. |
| Modifier and Type | Method and Description |
|---|---|
static ConversationsFilter.Builder |
builder()
Creates a builder for
ConversationsFilter. |
static ConversationsFilter |
copyOf(ConversationsFilterIF instance)
Creates an immutable copy of a
ConversationsFilterIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ConversationsFilter that have equal attribute values. |
Set<ConversationType> |
getConversationTypes() |
String |
getTypes() |
int |
hashCode()
Computes a hash code from attributes:
shouldExcludeArchived, types, conversationTypes. |
Optional<Boolean> |
shouldExcludeArchived() |
String |
toString()
Prints the immutable value
ConversationsFilter with attribute values. |
ConversationsFilter |
withConversationTypes(ConversationType... elements)
Copy the current immutable object with elements that replace the content of
conversationTypes. |
ConversationsFilter |
withConversationTypes(Iterable<ConversationType> elements)
Copy the current immutable object with elements that replace the content of
conversationTypes. |
ConversationsFilter |
withShouldExcludeArchived(Boolean value)
Copy the current immutable object by setting a present value for the optional
shouldExcludeArchived attribute. |
ConversationsFilter |
withShouldExcludeArchived(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for the
shouldExcludeArchived attribute. |
public Optional<Boolean> shouldExcludeArchived()
shouldExcludeArchived in interface BaseConversationsFiltershouldExcludeArchived attributepublic String getTypes()
getTypes in interface BaseConversationsFiltertypes attributepublic Set<ConversationType> getConversationTypes()
getConversationTypes in interface BaseConversationsFilterconversationTypes attributepublic final ConversationsFilter withShouldExcludeArchived(@Nullable Boolean value)
shouldExcludeArchived attribute.value - The value for shouldExcludeArchived, null is accepted as java.util.Optional.empty()this objectpublic final ConversationsFilter withShouldExcludeArchived(Optional<Boolean> optional)
shouldExcludeArchived attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for shouldExcludeArchivedthis objectpublic final ConversationsFilter withConversationTypes(ConversationType... elements)
conversationTypes.elements - The elements to setthis objectpublic final ConversationsFilter withConversationTypes(Iterable<ConversationType> elements)
conversationTypes.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of conversationTypes elements to setthis objectpublic boolean equals(@Nullable Object another)
ConversationsFilter that have equal attribute values.public int hashCode()
shouldExcludeArchived, types, conversationTypes.public String toString()
ConversationsFilter with attribute values.public static ConversationsFilter copyOf(ConversationsFilterIF instance)
ConversationsFilterIF 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 ConversationsFilter.Builder builder()
ConversationsFilter.Copyright © 2019. All rights reserved.