Record Class PersonIntroduce
java.lang.Object
java.lang.Record
io.github.seenings.info.model.PersonIntroduce
- Record Components:
introduceTypeId- 介绍类型IDintroduceTitle- 介绍标题introduceContent- 介绍内容orderToPhotoIdMap- 顺序对应照片ID
-
Constructor Summary
Constructors -
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 theintroduceContentrecord component.Returns the value of theintroduceTitlerecord component.Returns the value of theintroduceTypeIdrecord component.Returns the value of theorderToPhotoIdMaprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PersonIntroduce
public PersonIntroduce(Integer introduceTypeId, String introduceTitle, String introduceContent, Map<Integer, Integer> orderToPhotoIdMap) Creates an instance of aPersonIntroducerecord class.- Parameters:
introduceTypeId- the value for theintroduceTypeIdrecord componentintroduceTitle- the value for theintroduceTitlerecord componentintroduceContent- the value for theintroduceContentrecord componentorderToPhotoIdMap- the value for theorderToPhotoIdMaprecord 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). -
introduceTypeId
Returns the value of theintroduceTypeIdrecord component.- Returns:
- the value of the
introduceTypeIdrecord component
-
introduceTitle
Returns the value of theintroduceTitlerecord component.- Returns:
- the value of the
introduceTitlerecord component
-
introduceContent
Returns the value of theintroduceContentrecord component.- Returns:
- the value of the
introduceContentrecord component
-
orderToPhotoIdMap
Returns the value of theorderToPhotoIdMaprecord component.- Returns:
- the value of the
orderToPhotoIdMaprecord component
-