Record Class IntroduceTypeAndPhoto
java.lang.Object
java.lang.Record
io.github.seenings.introduce.model.IntroduceTypeAndPhoto
public record IntroduceTypeAndPhoto(IntroduceTypeEnum introduceTypeEnum, Integer order, Integer photoId)
extends Record
ไป็ป็
ง็
-
Constructor Summary
ConstructorsConstructorDescriptionIntroduceTypeAndPhoto(IntroduceTypeEnum introduceTypeEnum, Integer order, Integer photoId) Creates an instance of aIntroduceTypeAndPhotorecord 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 theintroduceTypeEnumrecord component.order()Returns the value of theorderrecord component.photoId()Returns the value of thephotoIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
IntroduceTypeAndPhoto
Creates an instance of aIntroduceTypeAndPhotorecord class.- Parameters:
introduceTypeEnum- the value for theintroduceTypeEnumrecord componentorder- the value for theorderrecord componentphotoId- the value for thephotoIdrecord 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
-
photoId
Returns the value of thephotoIdrecord component.- Returns:
- the value of the
photoIdrecord component
-