Record Class CampaignSummary

java.lang.Object
java.lang.Record
com.evolveum.midpoint.web.component.data.column.CampaignSummary
All Implemented Interfaces:
Serializable

public record CampaignSummary(AccessCertificationCampaignType campaign, long decidedCount, long openNotDecidedCount) extends Record implements Serializable
Class that holds summary information about certification campaign. Used primaryly in dashboard panels.
See Also:
  • Constructor Details

    • CampaignSummary

      public CampaignSummary(AccessCertificationCampaignType campaign, long decidedCount, long openNotDecidedCount)
      Creates an instance of a CampaignSummary record class.
      Parameters:
      campaign - the value for the campaign record component
      decidedCount - the value for the decidedCount record component
      openNotDecidedCount - the value for the openNotDecidedCount 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • campaign

      Returns the value of the campaign record component.
      Returns:
      the value of the campaign record component
    • decidedCount

      public long decidedCount()
      Returns the value of the decidedCount record component.
      Returns:
      the value of the decidedCount record component
    • openNotDecidedCount

      public long openNotDecidedCount()
      Returns the value of the openNotDecidedCount record component.
      Returns:
      the value of the openNotDecidedCount record component