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 classImmutableCommitWithFolderContent.BuilderBuilds instances of typeImmutableCommitWithFolderContent.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableCommitWithFolderContent.Builderbuilder()Creates a builder forImmutableCommitWithFolderContent.Commitcommit()Commit resourceFolderContentcontent()Repository content resourcestatic ImmutableCommitWithFolderContentcopyOf(CommitWithFolderContent instance)Creates an immutable copy of aCommitWithFolderContentvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableCommitWithFolderContentthat have equal attribute values.inthashCode()Computes a hash code from attributes:content,commit.StringtoString()Prints the immutable valueCommitWithFolderContentwith attribute values.ImmutableCommitWithFolderContentwithCommit(Commit value)Copy the current immutable object by setting a value for thecommitattribute.ImmutableCommitWithFolderContentwithContent(FolderContent value)Copy the current immutable object by setting a value for thecontentattribute.
-
-
-
Method Detail
-
content
public FolderContent content()
Repository content resource- Specified by:
contentin interfaceCommitWithFolderContent
-
commit
public Commit commit()
Commit resource- Specified by:
commitin interfaceCommitWithFolderContent
-
withContent
public final ImmutableCommitWithFolderContent withContent(FolderContent value)
Copy the current immutable object by setting a value for thecontentattribute. 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
thisobject
-
withCommit
public final ImmutableCommitWithFolderContent withCommit(Commit value)
Copy the current immutable object by setting a value for thecommitattribute. 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
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableCommitWithFolderContentthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:content,commit.
-
toString
public String toString()
Prints the immutable valueCommitWithFolderContentwith attribute values.
-
copyOf
public static ImmutableCommitWithFolderContent copyOf(CommitWithFolderContent instance)
Creates an immutable copy of aCommitWithFolderContentvalue. 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) // requiredcontent.commit(com.spotify.github.v3.git.Commit) // requiredcommit.build();- Returns:
- A new ImmutableCommitWithFolderContent builder
-
-