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 classImmutableInstallationRepositoriesResponse.BuilderBuilds instances of typeImmutableInstallationRepositoriesResponse.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableInstallationRepositoriesResponse.Builderbuilder()Creates a builder forImmutableInstallationRepositoriesResponse.static ImmutableInstallationRepositoriesResponsecopyOf(InstallationRepositoriesResponse instance)Creates an immutable copy of aInstallationRepositoriesResponsevalue.booleanequals(Object another)This instance is equal to all instances ofImmutableInstallationRepositoriesResponsethat have equal attribute values.inthashCode()Computes a hash code from attributes:totalCount,repositories.List<Repository>repositories()StringtoString()Prints the immutable valueInstallationRepositoriesResponsewith attribute values.inttotalCount()ImmutableInstallationRepositoriesResponsewithRepositories(Repository... elements)Copy the current immutable object with elements that replace the content ofrepositories.ImmutableInstallationRepositoriesResponsewithRepositories(Iterable<? extends Repository> elements)Copy the current immutable object with elements that replace the content ofrepositories.ImmutableInstallationRepositoriesResponsewithTotalCount(int value)Copy the current immutable object by setting a value for thetotalCountattribute.
-
-
-
Method Detail
-
totalCount
public int totalCount()
- Specified by:
totalCountin interfaceInstallationRepositoriesResponse- Returns:
- The value of the
totalCountattribute
-
repositories
public List<Repository> repositories()
- Specified by:
repositoriesin interfaceInstallationRepositoriesResponse- Returns:
- The value of the
repositoriesattribute
-
withTotalCount
public final ImmutableInstallationRepositoriesResponse withTotalCount(int value)
Copy the current immutable object by setting a value for thetotalCountattribute. 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
thisobject
-
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
thisobject
-
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
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableInstallationRepositoriesResponsethat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:totalCount,repositories.
-
toString
public String toString()
Prints the immutable valueInstallationRepositoriesResponsewith attribute values.
-
copyOf
public static ImmutableInstallationRepositoriesResponse copyOf(InstallationRepositoriesResponse instance)
Creates an immutable copy of aInstallationRepositoriesResponsevalue. 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) // requiredtotalCount.addRepositories|addAllRepositories(com.spotify.github.v3.repos.Repository) //repositorieselements .build();- Returns:
- A new ImmutableInstallationRepositoriesResponse builder
-
-