Record Class PersonIntroduceSave
java.lang.Object
java.lang.Record
io.github.seenings.info.model.PersonIntroduceSave
- Record Components:
introduceTypeIndex- 介绍标题IDintroduceContent- 介绍内容orderAndPhotoIds- 介绍照片max- 最大个数
public record PersonIntroduceSave(int introduceTypeIndex, String introduceContent, List<OrderAndPhotoId> orderAndPhotoIds, Integer max)
extends Record
个人介绍
-
Constructor Summary
ConstructorsConstructorDescriptionPersonIntroduceSave(int introduceTypeIndex, String introduceContent, List<OrderAndPhotoId> orderAndPhotoIds, Integer max) Creates an instance of aPersonIntroduceSaverecord 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 theintroduceContentrecord component.intReturns the value of theintroduceTypeIndexrecord component.max()Returns the value of themaxrecord component.Returns the value of theorderAndPhotoIdsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PersonIntroduceSave
public PersonIntroduceSave(int introduceTypeIndex, String introduceContent, List<OrderAndPhotoId> orderAndPhotoIds, Integer max) Creates an instance of aPersonIntroduceSaverecord class.- Parameters:
introduceTypeIndex- the value for theintroduceTypeIndexrecord componentintroduceContent- the value for theintroduceContentrecord componentorderAndPhotoIds- the value for theorderAndPhotoIdsrecord componentmax- the value for themaxrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
introduceTypeIndex
public int introduceTypeIndex()Returns the value of theintroduceTypeIndexrecord component.- Returns:
- the value of the
introduceTypeIndexrecord component
-
introduceContent
Returns the value of theintroduceContentrecord component.- Returns:
- the value of the
introduceContentrecord component
-
orderAndPhotoIds
Returns the value of theorderAndPhotoIdsrecord component.- Returns:
- the value of the
orderAndPhotoIdsrecord component
-
max
-