Module software.sava.core
Record Class TransferFee
java.lang.Object
java.lang.Record
software.sava.core.accounts.token.extensions.TransferFee
- All Implemented Interfaces:
Serializable
public record TransferFee(long epoch, long maximumFee, int transferFeeBasisPoints)
extends Record
implements Serializable
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTransferFee(long epoch, long maximumFee, int transferFeeBasisPoints) Creates an instance of aTransferFeerecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongepoch()Returns the value of theepochrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intl()longReturns the value of themaximumFeerecord component.static TransferFeeread(byte[] data, int offset) final StringtoString()Returns a string representation of this record class.intReturns the value of thetransferFeeBasisPointsrecord component.intwrite(byte[] data, int offset) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.sava.core.serial.Serializable
reusable, write, write
-
Field Details
-
BYTES
public static final int BYTES- See Also:
-
-
Constructor Details
-
TransferFee
public TransferFee(long epoch, long maximumFee, int transferFeeBasisPoints) Creates an instance of aTransferFeerecord class.- Parameters:
epoch- the value for theepochrecord componentmaximumFee- the value for themaximumFeerecord componenttransferFeeBasisPoints- the value for thetransferFeeBasisPointsrecord component
-
-
Method Details
-
read
-
l
public int l()- Specified by:
lin interfaceSerializable
-
write
public int write(byte[] data, int offset) - Specified by:
writein interfaceSerializable
-
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 '=='. -
epoch
public long epoch()Returns the value of theepochrecord component.- Returns:
- the value of the
epochrecord component
-
maximumFee
public long maximumFee()Returns the value of themaximumFeerecord component.- Returns:
- the value of the
maximumFeerecord component
-
transferFeeBasisPoints
public int transferFeeBasisPoints()Returns the value of thetransferFeeBasisPointsrecord component.- Returns:
- the value of the
transferFeeBasisPointsrecord component
-