Record Class MemberEvent
java.lang.Object
java.lang.Record
com.loomcache.client.MemberEvent
-
Constructor Summary
ConstructorsConstructorDescriptionMemberEvent(String memberId) Creates an instance of aMemberEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.memberId()Returns the value of thememberIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MemberEvent
Creates an instance of aMemberEventrecord class.- Parameters:
memberId- the value for thememberIdrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
memberId
Returns the value of thememberIdrecord component.- Returns:
- the value of the
memberIdrecord component
-