Package com.spotify.github.v3.repos
Class ImmutableCommitWithFolderContent
- java.lang.Object
-
- com.spotify.github.v3.repos.ImmutableCommitWithFolderContent
-
- All Implemented Interfaces:
CommitWithFolderContent
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableCommitWithFolderContent extends Object implements CommitWithFolderContent
Immutable implementation ofCommitWithFolderContent
.Use the builder to create immutable instances:
ImmutableCommitWithFolderContent.builder()
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ImmutableCommitWithFolderContent.Builder
Builds instances of typeImmutableCommitWithFolderContent
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableCommitWithFolderContent.Builder
builder()
Creates a builder forImmutableCommitWithFolderContent
.Commit
commit()
Commit resourceFolderContent
content()
Repository content resourcestatic ImmutableCommitWithFolderContent
copyOf(CommitWithFolderContent instance)
Creates an immutable copy of aCommitWithFolderContent
value.boolean
equals(Object another)
This instance is equal to all instances ofImmutableCommitWithFolderContent
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:content
,commit
.String
toString()
Prints the immutable valueCommitWithFolderContent
with attribute values.ImmutableCommitWithFolderContent
withCommit(Commit value)
Copy the current immutable object by setting a value for thecommit
attribute.ImmutableCommitWithFolderContent
withContent(FolderContent value)
Copy the current immutable object by setting a value for thecontent
attribute.
-
-
-
Method Detail
-
content
public FolderContent content()
Repository content resource- Specified by:
content
in interfaceCommitWithFolderContent
-
commit
public Commit commit()
Commit resource- Specified by:
commit
in interfaceCommitWithFolderContent
-
withContent
public final ImmutableCommitWithFolderContent withContent(FolderContent value)
Copy the current immutable object by setting a value for thecontent
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for content- Returns:
- A modified copy of the
this
object
-
withCommit
public final ImmutableCommitWithFolderContent withCommit(Commit value)
Copy the current immutable object by setting a value for thecommit
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for commit- Returns:
- A modified copy of the
this
object
-
equals
public boolean equals(@Nullable Object another)
This instance is equal to all instances ofImmutableCommitWithFolderContent
that have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:content
,commit
.
-
toString
public String toString()
Prints the immutable valueCommitWithFolderContent
with attribute values.
-
copyOf
public static ImmutableCommitWithFolderContent copyOf(CommitWithFolderContent instance)
Creates an immutable copy of aCommitWithFolderContent
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 CommitWithFolderContent instance
-
builder
public static ImmutableCommitWithFolderContent.Builder builder()
Creates a builder forImmutableCommitWithFolderContent
.ImmutableCommitWithFolderContent.builder() .content(com.spotify.github.v3.repos.FolderContent) // required
content
.commit(com.spotify.github.v3.git.Commit) // requiredcommit
.build();- Returns:
- A new ImmutableCommitWithFolderContent builder
-
-