Record Class SearchInventorResponse
java.lang.Object
java.lang.Record
inha.git.project.api.controller.dto.response.SearchInventorResponse
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull StringReturns the value of theaffiliationrecord component.@NotNull Stringemail()Returns the value of theemailrecord component.@NotNull StringReturns the value of theenglishNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull BooleanReturns the value of themainInventorrecord component.@NotNull Stringname()Returns the value of thenamerecord component.@NotNull Stringshare()Returns the value of thesharerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theuserNumberrecord component.
-
Constructor Details
-
SearchInventorResponse
public SearchInventorResponse(@NotNull @NotNull String name, @NotNull @NotNull String englishName, @NotNull @NotNull String affiliation, @NotNull @NotNull String share, @NotNull @NotNull Boolean mainInventor, @NotNull @NotNull String email, String userNumber) Creates an instance of aSearchInventorResponserecord class.- Parameters:
name- the value for thenamerecord componentenglishName- the value for theenglishNamerecord componentaffiliation- the value for theaffiliationrecord componentshare- the value for thesharerecord componentmainInventor- the value for themainInventorrecord componentemail- the value for theemailrecord componentuserNumber- the value for theuserNumberrecord 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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
englishName
Returns the value of theenglishNamerecord component.- Returns:
- the value of the
englishNamerecord component
-
affiliation
Returns the value of theaffiliationrecord component.- Returns:
- the value of the
affiliationrecord component
-
mainInventor
Returns the value of themainInventorrecord component.- Returns:
- the value of the
mainInventorrecord component
-
email
Returns the value of theemailrecord component.- Returns:
- the value of the
emailrecord component
-
userNumber
Returns the value of theuserNumberrecord component.- Returns:
- the value of the
userNumberrecord component
-