Record Class IntroduceTypeAndPhotoInfo
java.lang.Object
java.lang.Record
io.github.seenings.introduce.model.IntroduceTypeAndPhotoInfo
public record IntroduceTypeAndPhotoInfo(IntroduceTypeEnum introduceTypeEnum, Integer order, Integer id)
extends Record
照片介绍信息
-
Constructor Summary
ConstructorsConstructorDescriptionIntroduceTypeAndPhotoInfo(IntroduceTypeEnum introduceTypeEnum, Integer order, Integer id) Creates an instance of aIntroduceTypeAndPhotoInforecord 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.id()Returns the value of theidrecord component.Returns the value of theintroduceTypeEnumrecord component.order()Returns the value of theorderrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
IntroduceTypeAndPhotoInfo
Creates an instance of aIntroduceTypeAndPhotoInforecord class.- Parameters:
introduceTypeEnum- the value for theintroduceTypeEnumrecord componentorder- the value for theorderrecord componentid- the value for theidrecord 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). -
introduceTypeEnum
Returns the value of theintroduceTypeEnumrecord component.- Returns:
- the value of the
introduceTypeEnumrecord component
-
order
Returns the value of theorderrecord component.- Returns:
- the value of the
orderrecord component
-
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-