Package com.spotify.github.v3.checks
Class ImmutableCheckSuiteResponseList
- java.lang.Object
-
- com.spotify.github.v3.checks.ImmutableCheckSuiteResponseList
-
- All Implemented Interfaces:
CheckSuiteResponseList
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableCheckSuiteResponseList extends Object implements CheckSuiteResponseList
Immutable implementation ofCheckSuiteResponseList
.Use the builder to create immutable instances:
ImmutableCheckSuiteResponseList.builder()
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ImmutableCheckSuiteResponseList.Builder
Builds instances of typeImmutableCheckSuiteResponseList
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableCheckSuiteResponseList.Builder
builder()
Creates a builder forImmutableCheckSuiteResponseList
.List<CheckSuite>
checkSuites()
Check suites list.static ImmutableCheckSuiteResponseList
copyOf(CheckSuiteResponseList instance)
Creates an immutable copy of aCheckSuiteResponseList
value.boolean
equals(Object another)
This instance is equal to all instances ofImmutableCheckSuiteResponseList
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:totalCount
,checkSuites
.String
toString()
Prints the immutable valueCheckSuiteResponseList
with attribute values.int
totalCount()
The count.ImmutableCheckSuiteResponseList
withCheckSuites(CheckSuite... elements)
Copy the current immutable object with elements that replace the content ofcheckSuites
.ImmutableCheckSuiteResponseList
withCheckSuites(Iterable<? extends CheckSuite> elements)
Copy the current immutable object with elements that replace the content ofcheckSuites
.ImmutableCheckSuiteResponseList
withTotalCount(int value)
Copy the current immutable object by setting a value for thetotalCount
attribute.
-
-
-
Method Detail
-
totalCount
public int totalCount()
The count.- Specified by:
totalCount
in interfaceCheckSuiteResponseList
- Returns:
- the int
-
checkSuites
public List<CheckSuite> checkSuites()
Check suites list.- Specified by:
checkSuites
in interfaceCheckSuiteResponseList
- Returns:
- the list
-
withTotalCount
public final ImmutableCheckSuiteResponseList 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
-
withCheckSuites
public final ImmutableCheckSuiteResponseList withCheckSuites(CheckSuite... elements)
Copy the current immutable object with elements that replace the content ofcheckSuites
.- Parameters:
elements
- The elements to set- Returns:
- A modified copy of
this
object
-
withCheckSuites
public final ImmutableCheckSuiteResponseList withCheckSuites(Iterable<? extends CheckSuite> elements)
Copy the current immutable object with elements that replace the content ofcheckSuites
. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
elements
- An iterable of checkSuites elements to set- Returns:
- A modified copy of
this
object
-
equals
public boolean equals(@Nullable Object another)
This instance is equal to all instances ofImmutableCheckSuiteResponseList
that have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:totalCount
,checkSuites
.
-
toString
public String toString()
Prints the immutable valueCheckSuiteResponseList
with attribute values.
-
copyOf
public static ImmutableCheckSuiteResponseList copyOf(CheckSuiteResponseList instance)
Creates an immutable copy of aCheckSuiteResponseList
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 CheckSuiteResponseList instance
-
builder
public static ImmutableCheckSuiteResponseList.Builder builder()
Creates a builder forImmutableCheckSuiteResponseList
.ImmutableCheckSuiteResponseList.builder() .totalCount(int) // required
totalCount
.addCheckSuites|addAllCheckSuites(com.spotify.github.v3.checks.CheckSuite) //checkSuites
elements .build();- Returns:
- A new ImmutableCheckSuiteResponseList builder
-
-