Package org.localify.dto.response
Record Class DescriptionResponse
java.lang.Object
java.lang.Record
org.localify.dto.response.DescriptionResponse
- Record Components:
id- The ID of the description.content- The content of the description.contributedBy- The user who contributed the description.
Represents a response containing a description.
-
Constructor Summary
ConstructorsConstructorDescriptionDescriptionResponse(UUID id, String content, String contributedBy) Creates an instance of aDescriptionResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptioncontent()Returns the value of thecontentrecord component.Returns the value of thecontributedByrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.static DescriptionResponseReturns a default DescriptionResponse.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DescriptionResponse
Creates an instance of aDescriptionResponserecord class.- Parameters:
id- the value for theidrecord componentcontent- the value for thecontentrecord componentcontributedBy- the value for thecontributedByrecord component
-
-
Method Details
-
theDefault
Returns a default DescriptionResponse.- Returns:
- A default DescriptionResponse.
-
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
-
content
Returns the value of thecontentrecord component.- Returns:
- the value of the
contentrecord component
-
contributedBy
Returns the value of thecontributedByrecord component.- Returns:
- the value of the
contributedByrecord component
-