Package com.spotify.github.v3.search
Class ImmutableSearchIssues
- java.lang.Object
-
- com.spotify.github.v3.search.ImmutableSearchIssues
-
- All Implemented Interfaces:
Search,SearchIssues
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableSearchIssues extends Object implements SearchIssues
Immutable implementation ofSearchIssues.Use the builder to create immutable instances:
ImmutableSearchIssues.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableSearchIssues.BuilderBuilds instances of typeImmutableSearchIssues.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableSearchIssues.Builderbuilder()Creates a builder forImmutableSearchIssues.static ImmutableSearchIssuescopyOf(SearchIssues instance)Creates an immutable copy of aSearchIssuesvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableSearchIssuesthat have equal attribute values.inthashCode()Computes a hash code from attributes:totalCount,incompleteResults,items.BooleanincompleteResults()Are returned results incompleteList<SearchIssue>items()Issues search resultsStringtoString()Prints the immutable valueSearchIssueswith attribute values.IntegertotalCount()Total count of search hitsImmutableSearchIssueswithIncompleteResults(Boolean value)Copy the current immutable object by setting a value for theincompleteResultsattribute.ImmutableSearchIssueswithItems(SearchIssue... elements)Copy the current immutable object with elements that replace the content ofitems.ImmutableSearchIssueswithItems(Iterable<? extends SearchIssue> elements)Copy the current immutable object with elements that replace the content ofitems.ImmutableSearchIssueswithTotalCount(Integer value)Copy the current immutable object by setting a value for thetotalCountattribute.
-
-
-
Method Detail
-
totalCount
@Nullable public Integer totalCount()
Total count of search hits- Specified by:
totalCountin interfaceSearch
-
incompleteResults
@Nullable public Boolean incompleteResults()
Are returned results incomplete- Specified by:
incompleteResultsin interfaceSearch
-
items
@Nullable public List<SearchIssue> items()
Issues search results- Specified by:
itemsin interfaceSearchIssues
-
withTotalCount
public final ImmutableSearchIssues withTotalCount(@Nullable Integer value)
Copy the current immutable object by setting a value for thetotalCountattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for totalCount (can benull)- Returns:
- A modified copy of the
thisobject
-
withIncompleteResults
public final ImmutableSearchIssues withIncompleteResults(@Nullable Boolean value)
Copy the current immutable object by setting a value for theincompleteResultsattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for incompleteResults (can benull)- Returns:
- A modified copy of the
thisobject
-
withItems
public final ImmutableSearchIssues withItems(@Nullable SearchIssue... elements)
Copy the current immutable object with elements that replace the content ofitems.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withItems
public final ImmutableSearchIssues withItems(@Nullable Iterable<? extends SearchIssue> elements)
Copy the current immutable object with elements that replace the content ofitems. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of items elements to set- Returns:
- A modified copy of
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableSearchIssuesthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:totalCount,incompleteResults,items.
-
toString
public String toString()
Prints the immutable valueSearchIssueswith attribute values.
-
copyOf
public static ImmutableSearchIssues copyOf(SearchIssues instance)
Creates an immutable copy of aSearchIssuesvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable SearchIssues instance
-
builder
public static ImmutableSearchIssues.Builder builder()
Creates a builder forImmutableSearchIssues.ImmutableSearchIssues.builder() .totalCount(Integer | null) // nullabletotalCount.incompleteResults(Boolean | null) // nullableincompleteResults.items(List<com.spotify.github.v3.search.SearchIssue> | null) // nullableitems.build();- Returns:
- A new ImmutableSearchIssues builder
-
-