Record Class ContactInformation
java.lang.Object
java.lang.Record
io.github.seenings.info.model.ContactInformation
- Record Components:
wechatNumber- 微信号photoNumber- 手机号
-
Constructor Summary
ConstructorsConstructorDescriptionContactInformation(String wechatNumber, String photoNumber) Creates an instance of aContactInformationrecord 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.Returns the value of thephotoNumberrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thewechatNumberrecord component.
-
Constructor Details
-
ContactInformation
Creates an instance of aContactInformationrecord class.- Parameters:
wechatNumber- the value for thewechatNumberrecord componentphotoNumber- the value for thephotoNumberrecord 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). -
wechatNumber
Returns the value of thewechatNumberrecord component.- Returns:
- the value of the
wechatNumberrecord component
-
photoNumber
Returns the value of thephotoNumberrecord component.- Returns:
- the value of the
photoNumberrecord component
-