Record Class GroupResponse
java.lang.Object
java.lang.Record
ntnu.idatt2016.v233.SmartMat.dto.response.group.GroupResponse
- Record Components:
groupId
- the id of the grouplinkCode
- the link code of the group
GroupResponse is a record class representing a response to a group request.
-
Constructor Summary
ConstructorsConstructorDescriptionGroupResponse
(long groupId, String linkCode) Creates an instance of aGroupResponse
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.long
groupId()
Returns the value of thegroupId
record component.final int
hashCode()
Returns a hash code value for this object.linkCode()
Returns the value of thelinkCode
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
groupId
public long groupId()Returns the value of thegroupId
record component.- Returns:
- the value of the
groupId
record component
-
linkCode
Returns the value of thelinkCode
record component.- Returns:
- the value of the
linkCode
record component
-