Record Class UpdatePatentInventorRequest
java.lang.Object
java.lang.Record
inha.git.project.api.controller.dto.request.UpdatePatentInventorRequest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull String
Returns the value of theaffiliation
record component.@NotNull @Email String
email()
Returns the value of theemail
record component.Returns the value of theenglishName
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.@NotNull Boolean
Returns the value of themainInventor
record component.@NotNull String
name()
Returns the value of thename
record component.@NotNull String
share()
Returns the value of theshare
record component.final String
toString()
Returns a string representation of this record class.Returns the value of theuserNumber
record component.
-
Constructor Details
-
UpdatePatentInventorRequest
public UpdatePatentInventorRequest(@NotNull @NotNull String name, String englishName, @NotNull @NotNull String affiliation, @NotNull @ValidShare @NotNull String share, @NotNull @NotNull Boolean mainInventor, @NotNull @Email @NotNull @Email String email, String userNumber) Creates an instance of aUpdatePatentInventorRequest
record class.- Parameters:
name
- the value for thename
record componentenglishName
- the value for theenglishName
record componentaffiliation
- the value for theaffiliation
record componentshare
- the value for theshare
record componentmainInventor
- the value for themainInventor
record componentemail
- the value for theemail
record componentuserNumber
- the value for theuserNumber
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)
. -
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
englishName
Returns the value of theenglishName
record component.- Returns:
- the value of the
englishName
record component
-
affiliation
Returns the value of theaffiliation
record component.- Returns:
- the value of the
affiliation
record component
-
mainInventor
Returns the value of themainInventor
record component.- Returns:
- the value of the
mainInventor
record component
-
email
Returns the value of theemail
record component.- Returns:
- the value of the
email
record component
-
userNumber
Returns the value of theuserNumber
record component.- Returns:
- the value of the
userNumber
record component
-