Package com.spotify.github.v3.checks
Class ImmutableCheckSuite
- java.lang.Object
-
- com.spotify.github.v3.checks.ImmutableCheckSuite
-
- All Implemented Interfaces:
CheckSuite
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableCheckSuite extends Object implements CheckSuite
Immutable implementation ofCheckSuite.Use the builder to create immutable instances:
ImmutableCheckSuite.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableCheckSuite.BuilderBuilds instances of typeImmutableCheckSuite.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableCheckSuite.Builderbuilder()Creates a builder forImmutableCheckSuite.static ImmutableCheckSuitecopyOf(CheckSuite instance)Creates an immutable copy of aCheckSuitevalue.booleanequals(Object another)This instance is equal to all instances ofImmutableCheckSuitethat have equal attribute values.inthashCode()Computes a hash code from attributes:id.Integerid()The Check Suite Id.StringtoString()Prints the immutable valueCheckSuitewith attribute values.ImmutableCheckSuitewithId(Integer value)Copy the current immutable object by setting a value for theidattribute.
-
-
-
Method Detail
-
id
public Integer id()
The Check Suite Id.- Specified by:
idin interfaceCheckSuite- Returns:
- the integer
-
withId
public final ImmutableCheckSuite withId(Integer value)
Copy the current immutable object by setting a value for theidattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for id- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableCheckSuitethat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:id.
-
toString
public String toString()
Prints the immutable valueCheckSuitewith attribute values.
-
copyOf
public static ImmutableCheckSuite copyOf(CheckSuite instance)
Creates an immutable copy of aCheckSuitevalue. 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 CheckSuite instance
-
builder
public static ImmutableCheckSuite.Builder builder()
Creates a builder forImmutableCheckSuite.ImmutableCheckSuite.builder() .id(Integer) // requiredid.build();- Returns:
- A new ImmutableCheckSuite builder
-
-