Record Class SearchCond
java.lang.Object
java.lang.Record
inha.dayoook_e.song.api.controller.dto.request.SearchCond
-
Constructor Summary
ConstructorsConstructorDescriptionSearchCond
(Integer countryId, Boolean liked, String title) Creates an instance of aSearchCond
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecountryId
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.liked()
Returns the value of theliked
record component.title()
Returns the value of thetitle
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
SearchCond
Creates an instance of aSearchCond
record class.- Parameters:
countryId
- the value for thecountryId
record componentliked
- the value for theliked
record componenttitle
- the value for thetitle
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)
. -
countryId
Returns the value of thecountryId
record component.- Returns:
- the value of the
countryId
record component
-
liked
Returns the value of theliked
record component.- Returns:
- the value of the
liked
record component
-
title
Returns the value of thetitle
record component.- Returns:
- the value of the
title
record component
-