Record Class CollateralManagementProductRequest
java.lang.Object
java.lang.Record
org.apache.fineract.portfolio.collateralmanagement.data.CollateralManagementProductRequest
- All Implemented Interfaces:
Serializable
public record CollateralManagementProductRequest(String quality, BigDecimal basePrice, BigDecimal pctToBase, String unitType, String name, String currency, String locale)
extends Record
implements Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCollateralManagementProductRequest(String quality, BigDecimal basePrice, BigDecimal pctToBase, String unitType, String name, String currency, String locale) Creates an instance of aCollateralManagementProductRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebasePricerecord component.currency()Returns the value of thecurrencyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.locale()Returns the value of thelocalerecord component.name()Returns the value of thenamerecord component.Returns the value of thepctToBaserecord component.quality()Returns the value of thequalityrecord component.final StringtoString()Returns a string representation of this record class.unitType()Returns the value of theunitTyperecord component.
-
Constructor Details
-
CollateralManagementProductRequest
public CollateralManagementProductRequest(String quality, BigDecimal basePrice, BigDecimal pctToBase, String unitType, String name, String currency, String locale) Creates an instance of aCollateralManagementProductRequestrecord class.- Parameters:
quality- the value for thequalityrecord componentbasePrice- the value for thebasePricerecord componentpctToBase- the value for thepctToBaserecord componentunitType- the value for theunitTyperecord componentname- the value for thenamerecord componentcurrency- the value for thecurrencyrecord componentlocale- the value for thelocalerecord 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 withObjects::equals(Object,Object). -
quality
Returns the value of thequalityrecord component.- Returns:
- the value of the
qualityrecord component
-
basePrice
Returns the value of thebasePricerecord component.- Returns:
- the value of the
basePricerecord component
-
pctToBase
Returns the value of thepctToBaserecord component.- Returns:
- the value of the
pctToBaserecord component
-
unitType
Returns the value of theunitTyperecord component.- Returns:
- the value of the
unitTyperecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
currency
Returns the value of thecurrencyrecord component.- Returns:
- the value of the
currencyrecord component
-
locale
Returns the value of thelocalerecord component.- Returns:
- the value of the
localerecord component
-