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 classImmutableCheckSuiteResponseList.BuilderBuilds instances of typeImmutableCheckSuiteResponseList.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableCheckSuiteResponseList.Builderbuilder()Creates a builder forImmutableCheckSuiteResponseList.List<CheckSuite>checkSuites()Check suites list.static ImmutableCheckSuiteResponseListcopyOf(CheckSuiteResponseList instance)Creates an immutable copy of aCheckSuiteResponseListvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableCheckSuiteResponseListthat have equal attribute values.inthashCode()Computes a hash code from attributes:totalCount,checkSuites.StringtoString()Prints the immutable valueCheckSuiteResponseListwith attribute values.inttotalCount()The count.ImmutableCheckSuiteResponseListwithCheckSuites(CheckSuite... elements)Copy the current immutable object with elements that replace the content ofcheckSuites.ImmutableCheckSuiteResponseListwithCheckSuites(Iterable<? extends CheckSuite> elements)Copy the current immutable object with elements that replace the content ofcheckSuites.ImmutableCheckSuiteResponseListwithTotalCount(int value)Copy the current immutable object by setting a value for thetotalCountattribute.
-
-
-
Method Detail
-
totalCount
public int totalCount()
The count.- Specified by:
totalCountin interfaceCheckSuiteResponseList- Returns:
- the int
-
checkSuites
public List<CheckSuite> checkSuites()
Check suites list.- Specified by:
checkSuitesin interfaceCheckSuiteResponseList- Returns:
- the list
-
withTotalCount
public final ImmutableCheckSuiteResponseList 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
-
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
thisobject
-
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
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableCheckSuiteResponseListthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:totalCount,checkSuites.
-
toString
public String toString()
Prints the immutable valueCheckSuiteResponseListwith attribute values.
-
copyOf
public static ImmutableCheckSuiteResponseList copyOf(CheckSuiteResponseList instance)
Creates an immutable copy of aCheckSuiteResponseListvalue. 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) // requiredtotalCount.addCheckSuites|addAllCheckSuites(com.spotify.github.v3.checks.CheckSuite) //checkSuiteselements .build();- Returns:
- A new ImmutableCheckSuiteResponseList builder
-
-