Package hdi.model
Record Class ClaimPaymentContainer.Counts
java.lang.Object
java.lang.Record
hdi.model.ClaimPaymentContainer.Counts
- Enclosing class:
ClaimPaymentContainer
public static record ClaimPaymentContainer.Counts(int tranCount, int claimCount, int paymentCount)
extends Record
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the value of theclaimCount
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
Returns the value of thepaymentCount
record component.final String
toString()
Returns a string representation of this record class.int
Returns the value of thetranCount
record component.withCounts
(ClaimPaymentContainer.Counts anotherCountsObj)
-
Constructor Details
-
Counts
public Counts() -
Counts
public Counts(int tranCount, int claimCount, int paymentCount) Creates an instance of aCounts
record class.- Parameters:
tranCount
- the value for thetranCount
record componentclaimCount
- the value for theclaimCount
record componentpaymentCount
- the value for thepaymentCount
record component
-
-
Method Details
-
withCounts
-
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 '=='. -
tranCount
public int tranCount()Returns the value of thetranCount
record component.- Returns:
- the value of the
tranCount
record component
-
claimCount
public int claimCount()Returns the value of theclaimCount
record component.- Returns:
- the value of the
claimCount
record component
-
paymentCount
public int paymentCount()Returns the value of thepaymentCount
record component.- Returns:
- the value of the
paymentCount
record component
-