Record Class PersonIntroduce

java.lang.Object
java.lang.Record
io.github.seenings.info.model.PersonIntroduce
Record Components:
introduceTypeId - 介绍类型ID
introduceTitle - 介绍标题
introduceContent - 介绍内容
orderToPhotoIdMap - 顺序对应照片ID

public record PersonIntroduce(Integer introduceTypeId, String introduceTitle, String introduceContent, Map<Integer,Integer> orderToPhotoIdMap) extends Record
个人介绍
  • Constructor Details

    • PersonIntroduce

      public PersonIntroduce(Integer introduceTypeId, String introduceTitle, String introduceContent, Map<Integer,Integer> orderToPhotoIdMap)
      Creates an instance of a PersonIntroduce record class.
      Parameters:
      introduceTypeId - the value for the introduceTypeId record component
      introduceTitle - the value for the introduceTitle record component
      introduceContent - the value for the introduceContent record component
      orderToPhotoIdMap - the value for the orderToPhotoIdMap record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • introduceTypeId

      public Integer introduceTypeId()
      Returns the value of the introduceTypeId record component.
      Returns:
      the value of the introduceTypeId record component
    • introduceTitle

      public String introduceTitle()
      Returns the value of the introduceTitle record component.
      Returns:
      the value of the introduceTitle record component
    • introduceContent

      public String introduceContent()
      Returns the value of the introduceContent record component.
      Returns:
      the value of the introduceContent record component
    • orderToPhotoIdMap

      public Map<Integer,Integer> orderToPhotoIdMap()
      Returns the value of the orderToPhotoIdMap record component.
      Returns:
      the value of the orderToPhotoIdMap record component