Record Class GithubRepositoryResponse
java.lang.Object
java.lang.Record
inha.git.github.api.controller.dto.response.GithubRepositoryResponse
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull StringReturns the value of thearchiveUrlrecord component.@NotNull StringReturns the value of thedefaultBranchrecord component.final booleanIndicates whether some other object is "equal to" this one.@NotNull StringfullName()Returns the value of thefullNamerecord component.final inthashCode()Returns a hash code value for this object.@NotNull Longid()Returns the value of theidrecord component.@NotNull Stringname()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GithubRepositoryResponse
public GithubRepositoryResponse(@NotNull @NotNull Long id, @NotNull @NotNull String name, @NotNull @NotNull String fullName, @NotNull @NotNull String defaultBranch, @NotNull @NotNull String archiveUrl) Creates an instance of aGithubRepositoryResponserecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componentfullName- the value for thefullNamerecord componentdefaultBranch- the value for thedefaultBranchrecord componentarchiveUrl- the value for thearchiveUrlrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
fullName
Returns the value of thefullNamerecord component.- Returns:
- the value of the
fullNamerecord component
-
defaultBranch
Returns the value of thedefaultBranchrecord component.- Returns:
- the value of the
defaultBranchrecord component
-
archiveUrl
Returns the value of thearchiveUrlrecord component.- Returns:
- the value of the
archiveUrlrecord component
-