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 Summary
ConstructorsConstructorDescriptionCampaignSummary(AccessCertificationCampaignType campaign, long decidedCount, long openNotDecidedCount) Creates an instance of aCampaignSummaryrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncampaign()Returns the value of thecampaignrecord component.longReturns the value of thedecidedCountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of theopenNotDecidedCountrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CampaignSummary
public CampaignSummary(AccessCertificationCampaignType campaign, long decidedCount, long openNotDecidedCount) Creates an instance of aCampaignSummaryrecord class.- Parameters:
campaign- the value for thecampaignrecord componentdecidedCount- the value for thedecidedCountrecord componentopenNotDecidedCount- the value for theopenNotDecidedCountrecord component
-
-
Method Details
-
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. -
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. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
campaign
Returns the value of thecampaignrecord component.- Returns:
- the value of the
campaignrecord component
-
decidedCount
public long decidedCount()Returns the value of thedecidedCountrecord component.- Returns:
- the value of the
decidedCountrecord component
-
openNotDecidedCount
public long openNotDecidedCount()Returns the value of theopenNotDecidedCountrecord component.- Returns:
- the value of the
openNotDecidedCountrecord component
-