Module software.sava.core
Record Class MemoTransfer
java.lang.Object
java.lang.Record
software.sava.core.accounts.token.extensions.MemoTransfer
- All Implemented Interfaces:
AccountTokenExtension,TokenExtension,Serializable
public record MemoTransfer(boolean requireIncomingTransferAmount)
extends Record
implements AccountTokenExtension
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMemoTransfer(boolean requireIncomingTransferAmount) Creates an instance of aMemoTransferrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intl()static MemoTransferread(byte[] data, int offset) booleanReturns the value of therequireIncomingTransferAmountrecord component.final StringtoString()Returns a string representation of this record class.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, writeMethods inherited from interface software.sava.core.accounts.token.extensions.TokenExtension
ordinal
-
Field Details
-
BYTES
public static final int BYTES- See Also:
-
-
Constructor Details
-
MemoTransfer
public MemoTransfer(boolean requireIncomingTransferAmount) Creates an instance of aMemoTransferrecord class.- Parameters:
requireIncomingTransferAmount- the value for therequireIncomingTransferAmountrecord component
-
-
Method Details
-
read
-
extensionType
- Specified by:
extensionTypein interfaceTokenExtension
-
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 '=='. -
requireIncomingTransferAmount
public boolean requireIncomingTransferAmount()Returns the value of therequireIncomingTransferAmountrecord component.- Returns:
- the value of the
requireIncomingTransferAmountrecord component
-