Package com.spotify.github.v3.apps
Class ImmutableInstallationRepositoriesResponse
- java.lang.Object
-
- com.spotify.github.v3.apps.ImmutableInstallationRepositoriesResponse
-
- All Implemented Interfaces:
InstallationRepositoriesResponse
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableInstallationRepositoriesResponse extends Object implements InstallationRepositoriesResponse
Immutable implementation ofInstallationRepositoriesResponse
.Use the builder to create immutable instances:
ImmutableInstallationRepositoriesResponse.builder()
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ImmutableInstallationRepositoriesResponse.Builder
Builds instances of typeImmutableInstallationRepositoriesResponse
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableInstallationRepositoriesResponse.Builder
builder()
Creates a builder forImmutableInstallationRepositoriesResponse
.static ImmutableInstallationRepositoriesResponse
copyOf(InstallationRepositoriesResponse instance)
Creates an immutable copy of aInstallationRepositoriesResponse
value.boolean
equals(Object another)
This instance is equal to all instances ofImmutableInstallationRepositoriesResponse
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:totalCount
,repositories
.List<Repository>
repositories()
String
toString()
Prints the immutable valueInstallationRepositoriesResponse
with attribute values.int
totalCount()
ImmutableInstallationRepositoriesResponse
withRepositories(Repository... elements)
Copy the current immutable object with elements that replace the content ofrepositories
.ImmutableInstallationRepositoriesResponse
withRepositories(Iterable<? extends Repository> elements)
Copy the current immutable object with elements that replace the content ofrepositories
.ImmutableInstallationRepositoriesResponse
withTotalCount(int value)
Copy the current immutable object by setting a value for thetotalCount
attribute.
-
-
-
Method Detail
-
totalCount
public int totalCount()
- Specified by:
totalCount
in interfaceInstallationRepositoriesResponse
- Returns:
- The value of the
totalCount
attribute
-
repositories
public List<Repository> repositories()
- Specified by:
repositories
in interfaceInstallationRepositoriesResponse
- Returns:
- The value of the
repositories
attribute
-
withTotalCount
public final ImmutableInstallationRepositoriesResponse withTotalCount(int value)
Copy the current immutable object by setting a value for thetotalCount
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for totalCount- Returns:
- A modified copy of the
this
object
-
withRepositories
public final ImmutableInstallationRepositoriesResponse withRepositories(Repository... elements)
Copy the current immutable object with elements that replace the content ofrepositories
.- Parameters:
elements
- The elements to set- Returns:
- A modified copy of
this
object
-
withRepositories
public final ImmutableInstallationRepositoriesResponse withRepositories(Iterable<? extends Repository> elements)
Copy the current immutable object with elements that replace the content ofrepositories
. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
elements
- An iterable of repositories elements to set- Returns:
- A modified copy of
this
object
-
equals
public boolean equals(@Nullable Object another)
This instance is equal to all instances ofImmutableInstallationRepositoriesResponse
that have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:totalCount
,repositories
.
-
toString
public String toString()
Prints the immutable valueInstallationRepositoriesResponse
with attribute values.
-
copyOf
public static ImmutableInstallationRepositoriesResponse copyOf(InstallationRepositoriesResponse instance)
Creates an immutable copy of aInstallationRepositoriesResponse
value. 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 InstallationRepositoriesResponse instance
-
builder
public static ImmutableInstallationRepositoriesResponse.Builder builder()
Creates a builder forImmutableInstallationRepositoriesResponse
.ImmutableInstallationRepositoriesResponse.builder() .totalCount(int) // required
totalCount
.addRepositories|addAllRepositories(com.spotify.github.v3.repos.Repository) //repositories
elements .build();- Returns:
- A new ImmutableInstallationRepositoriesResponse builder
-
-