@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","SearchMessagesParamsIF"}) @Immutable public final class SearchMessagesParams extends Object implements SearchMessagesParamsIF
SearchMessagesParamsIF.
Use the builder to create immutable instances:
SearchMessagesParams.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
SearchMessagesParams.Builder
Builds instances of type
SearchMessagesParams. |
| Modifier and Type | Method and Description |
|---|---|
static SearchMessagesParams.Builder |
builder()
Creates a builder for
SearchMessagesParams. |
static SearchMessagesParams |
copyOf(SearchMessagesParamsIF instance)
Creates an immutable copy of a
SearchMessagesParamsIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
SearchMessagesParams that have equal attribute values. |
int |
getCount() |
int |
getPage() |
String |
getQuery() |
ResultSort |
getSort() |
ResultSortOrder |
getSortOrder() |
int |
hashCode()
Computes a hash code from attributes:
query, shouldHighlight, count, page, sort, sortOrder. |
boolean |
shouldHighlight() |
String |
toString()
Prints the immutable value
SearchMessagesParams with attribute values. |
SearchMessagesParams |
withCount(int count)
Copy the current immutable object by setting a value for the
count attribute. |
SearchMessagesParams |
withPage(int page)
Copy the current immutable object by setting a value for the
page attribute. |
SearchMessagesParams |
withQuery(String query)
Copy the current immutable object by setting a value for the
query attribute. |
SearchMessagesParams |
withShouldHighlight(boolean shouldHighlight)
Copy the current immutable object by setting a value for the
shouldHighlight attribute. |
SearchMessagesParams |
withSort(ResultSort sort)
Copy the current immutable object by setting a value for the
sort attribute. |
SearchMessagesParams |
withSortOrder(ResultSortOrder sortOrder)
Copy the current immutable object by setting a value for the
sortOrder attribute. |
public String getQuery()
getQuery in interface SearchMessagesParamsIFquery attributepublic boolean shouldHighlight()
shouldHighlight in interface SearchMessagesParamsIFshouldHighlight attributepublic int getCount()
getCount in interface SearchMessagesParamsIFcount attributepublic int getPage()
getPage in interface SearchMessagesParamsIFpage attributepublic ResultSort getSort()
getSort in interface SearchMessagesParamsIFsort attributepublic ResultSortOrder getSortOrder()
getSortOrder in interface SearchMessagesParamsIFsortOrder attributepublic final SearchMessagesParams withQuery(String query)
query attribute.
An equals check used to prevent copying of the same value by returning this.query - A new value for querythis objectpublic final SearchMessagesParams withShouldHighlight(boolean shouldHighlight)
shouldHighlight attribute.
A value equality check is used to prevent copying of the same value by returning this.shouldHighlight - A new value for shouldHighlightthis objectpublic final SearchMessagesParams withCount(int count)
count attribute.
A value equality check is used to prevent copying of the same value by returning this.count - A new value for countthis objectpublic final SearchMessagesParams withPage(int page)
page attribute.
A value equality check is used to prevent copying of the same value by returning this.page - A new value for pagethis objectpublic final SearchMessagesParams withSort(ResultSort sort)
sort attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.sort - A new value for sortthis objectpublic final SearchMessagesParams withSortOrder(ResultSortOrder sortOrder)
sortOrder attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.sortOrder - A new value for sortOrderthis objectpublic boolean equals(@Nullable Object another)
SearchMessagesParams that have equal attribute values.public int hashCode()
query, shouldHighlight, count, page, sort, sortOrder.public String toString()
SearchMessagesParams with attribute values.public static SearchMessagesParams copyOf(SearchMessagesParamsIF instance)
SearchMessagesParamsIF 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 SearchMessagesParams.Builder builder()
SearchMessagesParams.Copyright © 2019. All rights reserved.