Record Class FeeCalculator.MosaicInformation
- Enclosing class:
- MosaicInformation
Mosaic information required for fee calculation.
-
Constructor Summary
ConstructorsConstructorDescriptionMosaicInformation(long supply, int divisibility) Creates an instance of aMosaicInformationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thedivisibilityrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longsupply()Returns the value of thesupplyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MosaicInformation
public MosaicInformation(long supply, int divisibility) Creates an instance of aMosaicInformationrecord class.- Parameters:
supply- the value for thesupplyrecord componentdivisibility- the value for thedivisibilityrecord component
-
-
Method Details
-
toString
- MosaicInformation.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()- MosaicInformation.hashCode
Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
-
equals
- MosaicInformation.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 '=='.
-
supply
public long supply()- MosaicInformation.supply
Returns the value of the
supplyrecord component.
- Returns:
the value of the
supplyrecord component
-
divisibility
public int divisibility()- MosaicInformation.divisibility
Returns the value of the
divisibilityrecord component.
- Returns:
the value of the
divisibilityrecord component
-