Record Class ProjectInfoKafkaDTO

java.lang.Object
java.lang.Record
callofproject.dev.community.config.kafka.dto.ProjectInfoKafkaDTO

public record ProjectInfoKafkaDTO(UUID projectId, String projectName, UserKafkaDTO projectOwner, List<ProjectParticipantKafkaDTO> projectParticipants, callofproject.dev.data.community.entity.enumeration.EProjectStatus projectStatus, callofproject.dev.data.common.enums.AdminOperationStatus adminOperationStatus, callofproject.dev.data.common.enums.EOperation operation) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    ProjectInfoKafkaDTO(UUID projectId, String projectName, UserKafkaDTO projectOwner, List<ProjectParticipantKafkaDTO> projectParticipants, callofproject.dev.data.community.entity.enumeration.EProjectStatus projectStatus, callofproject.dev.data.common.enums.AdminOperationStatus adminOperationStatus, callofproject.dev.data.common.enums.EOperation operation)
    Creates an instance of a ProjectInfoKafkaDTO record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    callofproject.dev.data.common.enums.AdminOperationStatus
    Returns the value of the adminOperationStatus record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    callofproject.dev.data.common.enums.EOperation
    Returns the value of the operation record component.
    Returns the value of the projectId record component.
    Returns the value of the projectName record component.
    Returns the value of the projectOwner record component.
    Returns the value of the projectParticipants record component.
    callofproject.dev.data.community.entity.enumeration.EProjectStatus
    Returns the value of the projectStatus record component.
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ProjectInfoKafkaDTO

      public ProjectInfoKafkaDTO(UUID projectId, String projectName, UserKafkaDTO projectOwner, List<ProjectParticipantKafkaDTO> projectParticipants, callofproject.dev.data.community.entity.enumeration.EProjectStatus projectStatus, callofproject.dev.data.common.enums.AdminOperationStatus adminOperationStatus, callofproject.dev.data.common.enums.EOperation operation)
      Creates an instance of a ProjectInfoKafkaDTO record class.
      Parameters:
      projectId - the value for the projectId record component
      projectName - the value for the projectName record component
      projectOwner - the value for the projectOwner record component
      projectParticipants - the value for the projectParticipants record component
      projectStatus - the value for the projectStatus record component
      adminOperationStatus - the value for the adminOperationStatus record component
      operation - the value for the operation record component
  • Method Details

    • toString

      public 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.
    • projectId

      public UUID projectId()
      Returns the value of the projectId record component.
      Returns:
      the value of the projectId record component
    • projectName

      public String projectName()
      Returns the value of the projectName record component.
      Returns:
      the value of the projectName record component
    • projectOwner

      public UserKafkaDTO projectOwner()
      Returns the value of the projectOwner record component.
      Returns:
      the value of the projectOwner record component
    • projectParticipants

      public List<ProjectParticipantKafkaDTO> projectParticipants()
      Returns the value of the projectParticipants record component.
      Returns:
      the value of the projectParticipants record component
    • projectStatus

      public callofproject.dev.data.community.entity.enumeration.EProjectStatus projectStatus()
      Returns the value of the projectStatus record component.
      Returns:
      the value of the projectStatus record component
    • adminOperationStatus

      public callofproject.dev.data.common.enums.AdminOperationStatus adminOperationStatus()
      Returns the value of the adminOperationStatus record component.
      Returns:
      the value of the adminOperationStatus record component
    • operation

      public callofproject.dev.data.common.enums.EOperation operation()
      Returns the value of the operation record component.
      Returns:
      the value of the operation record component