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 String
Returns the value of thearchiveUrl
record component.@NotNull String
Returns the value of thedefaultBranch
record component.final boolean
Indicates whether some other object is "equal to" this one.@NotNull String
fullName()
Returns the value of thefullName
record component.final int
hashCode()
Returns a hash code value for this object.@NotNull Long
id()
Returns the value of theid
record component.@NotNull String
name()
Returns the value of thename
record component.final String
toString()
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 aGithubRepositoryResponse
record class.- Parameters:
id
- the value for theid
record componentname
- the value for thename
record componentfullName
- the value for thefullName
record componentdefaultBranch
- the value for thedefaultBranch
record componentarchiveUrl
- the value for thearchiveUrl
record 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 theid
record component.- Returns:
- the value of the
id
record component
-
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
fullName
Returns the value of thefullName
record component.- Returns:
- the value of the
fullName
record component
-
defaultBranch
Returns the value of thedefaultBranch
record component.- Returns:
- the value of the
defaultBranch
record component
-
archiveUrl
Returns the value of thearchiveUrl
record component.- Returns:
- the value of the
archiveUrl
record component
-