Package io.nem.symbol.catapult.builders
Class MosaicAddressRestrictionTransactionBuilder
- java.lang.Object
-
- io.nem.symbol.catapult.builders.TransactionBuilder
-
- io.nem.symbol.catapult.builders.MosaicAddressRestrictionTransactionBuilder
-
- All Implemented Interfaces:
Serializer
public class MosaicAddressRestrictionTransactionBuilder extends TransactionBuilder implements Serializer
Binary layout for a non-embedded mosaic address restriction transaction
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMosaicAddressRestrictionTransactionBuilder(SignatureDto signature, KeyDto signerPublicKey, byte version, NetworkTypeDto network, EntityTypeDto type, AmountDto fee, TimestampDto deadline, UnresolvedMosaicIdDto mosaicId, long restrictionKey, long previousRestrictionValue, long newRestrictionValue, UnresolvedAddressDto targetAddress)Constructor.protectedMosaicAddressRestrictionTransactionBuilder(java.io.DataInputStream stream)Constructor - Creates an object from stream.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MosaicAddressRestrictionTransactionBuildercreate(SignatureDto signature, KeyDto signerPublicKey, byte version, NetworkTypeDto network, EntityTypeDto type, AmountDto fee, TimestampDto deadline, UnresolvedMosaicIdDto mosaicId, long restrictionKey, long previousRestrictionValue, long newRestrictionValue, UnresolvedAddressDto targetAddress)Creates an instance of MosaicAddressRestrictionTransactionBuilder.MosaicAddressRestrictionTransactionBodyBuildergetBody()Gets the body builder of the object.UnresolvedMosaicIdDtogetMosaicId()Gets identifier of the mosaic to which the restriction applies.longgetNewRestrictionValue()Gets new restriction value.longgetPreviousRestrictionValue()Gets previous restriction value.longgetRestrictionKey()Gets restriction key.intgetSize()Gets the size of the object.UnresolvedAddressDtogetTargetAddress()Gets address being restricted.static MosaicAddressRestrictionTransactionBuilderloadFromBinary(java.io.DataInputStream stream)Creates an instance of MosaicAddressRestrictionTransactionBuilder from a stream.byte[]serialize()Serializes an object to bytes.-
Methods inherited from class io.nem.symbol.catapult.builders.TransactionBuilder
create, getDeadline, getFee, getNetwork, getSignature, getSignerPublicKey, getStreamSize, getType, getVersion
-
-
-
-
Constructor Detail
-
MosaicAddressRestrictionTransactionBuilder
protected MosaicAddressRestrictionTransactionBuilder(java.io.DataInputStream stream)
Constructor - Creates an object from stream.- Parameters:
stream- Byte stream to use to serialize the object.
-
MosaicAddressRestrictionTransactionBuilder
protected MosaicAddressRestrictionTransactionBuilder(SignatureDto signature, KeyDto signerPublicKey, byte version, NetworkTypeDto network, EntityTypeDto type, AmountDto fee, TimestampDto deadline, UnresolvedMosaicIdDto mosaicId, long restrictionKey, long previousRestrictionValue, long newRestrictionValue, UnresolvedAddressDto targetAddress)
Constructor.- Parameters:
signature- Entity signature.signerPublicKey- Entity signer's public key.version- Entity version.network- Entity network.type- Entity type.fee- Transaction fee.deadline- Transaction deadline.mosaicId- Identifier of the mosaic to which the restriction applies.restrictionKey- Restriction key.previousRestrictionValue- Previous restriction value.newRestrictionValue- New restriction value.targetAddress- Address being restricted.
-
-
Method Detail
-
loadFromBinary
public static MosaicAddressRestrictionTransactionBuilder loadFromBinary(java.io.DataInputStream stream)
Creates an instance of MosaicAddressRestrictionTransactionBuilder from a stream.- Parameters:
stream- Byte stream to use to serialize the object.- Returns:
- Instance of MosaicAddressRestrictionTransactionBuilder.
-
create
public static MosaicAddressRestrictionTransactionBuilder create(SignatureDto signature, KeyDto signerPublicKey, byte version, NetworkTypeDto network, EntityTypeDto type, AmountDto fee, TimestampDto deadline, UnresolvedMosaicIdDto mosaicId, long restrictionKey, long previousRestrictionValue, long newRestrictionValue, UnresolvedAddressDto targetAddress)
Creates an instance of MosaicAddressRestrictionTransactionBuilder.- Parameters:
signature- Entity signature.signerPublicKey- Entity signer's public key.version- Entity version.network- Entity network.type- Entity type.fee- Transaction fee.deadline- Transaction deadline.mosaicId- Identifier of the mosaic to which the restriction applies.restrictionKey- Restriction key.previousRestrictionValue- Previous restriction value.newRestrictionValue- New restriction value.targetAddress- Address being restricted.- Returns:
- Instance of MosaicAddressRestrictionTransactionBuilder.
-
getMosaicId
public UnresolvedMosaicIdDto getMosaicId()
Gets identifier of the mosaic to which the restriction applies.- Returns:
- Identifier of the mosaic to which the restriction applies.
-
getRestrictionKey
public long getRestrictionKey()
Gets restriction key.- Returns:
- Restriction key.
-
getPreviousRestrictionValue
public long getPreviousRestrictionValue()
Gets previous restriction value.- Returns:
- Previous restriction value.
-
getNewRestrictionValue
public long getNewRestrictionValue()
Gets new restriction value.- Returns:
- New restriction value.
-
getTargetAddress
public UnresolvedAddressDto getTargetAddress()
Gets address being restricted.- Returns:
- Address being restricted.
-
getSize
public int getSize()
Gets the size of the object.- Specified by:
getSizein interfaceSerializer- Overrides:
getSizein classTransactionBuilder- Returns:
- Size in bytes.
-
getBody
public MosaicAddressRestrictionTransactionBodyBuilder getBody()
Gets the body builder of the object.- Overrides:
getBodyin classTransactionBuilder- Returns:
- Body builder.
-
serialize
public byte[] serialize()
Serializes an object to bytes.- Specified by:
serializein interfaceSerializer- Overrides:
serializein classTransactionBuilder- Returns:
- Serialized bytes.
-
-