Record Class MTAAnalysisReport.AnalysisIncidents
java.lang.Object
java.lang.Record
com.redhat.parodos.examples.prebuilt.migrationtoolkit.MTAAnalysisReport.AnalysisIncidents
- Record Components:
mandatory-optional-potential-cloudMandatory-cloudOptional-information-
- Enclosing class:
- MTAAnalysisReport
public static record MTAAnalysisReport.AnalysisIncidents(int mandatory, int optional, int potential, int cloudMandatory, int cloudOptional, int information)
extends Record
A representation of the summary of the incidents by severity of an MTA analysis
report
-
Constructor Summary
ConstructorsConstructorDescriptionAnalysisIncidents(int mandatory, int optional, int potential, int cloudMandatory, int cloudOptional, int information) Creates an instance of aAnalysisIncidentsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecloudMandatoryrecord component.intReturns the value of thecloudOptionalrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theinformationrecord component.intReturns the value of themandatoryrecord component.intoptional()Returns the value of theoptionalrecord component.intReturns the value of thepotentialrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AnalysisIncidents
public AnalysisIncidents(int mandatory, int optional, int potential, int cloudMandatory, int cloudOptional, int information) Creates an instance of aAnalysisIncidentsrecord class.- Parameters:
mandatory- the value for themandatoryrecord componentoptional- the value for theoptionalrecord componentpotential- the value for thepotentialrecord componentcloudMandatory- the value for thecloudMandatoryrecord componentcloudOptional- the value for thecloudOptionalrecord componentinformation- the value for theinformationrecord 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. All components in this record class are compared with '=='. -
mandatory
public int mandatory()Returns the value of themandatoryrecord component.- Returns:
- the value of the
mandatoryrecord component
-
optional
public int optional()Returns the value of theoptionalrecord component.- Returns:
- the value of the
optionalrecord component
-
potential
public int potential()Returns the value of thepotentialrecord component.- Returns:
- the value of the
potentialrecord component
-
cloudMandatory
public int cloudMandatory()Returns the value of thecloudMandatoryrecord component.- Returns:
- the value of the
cloudMandatoryrecord component
-
cloudOptional
public int cloudOptional()Returns the value of thecloudOptionalrecord component.- Returns:
- the value of the
cloudOptionalrecord component
-
information
public int information()Returns the value of theinformationrecord component.- Returns:
- the value of the
informationrecord component
-