Package io.nem.symbol.catapult.builders
Class EmbeddedMosaicGlobalRestrictionTransactionBuilder
- java.lang.Object
-
- io.nem.symbol.catapult.builders.EmbeddedTransactionHeaderBuilder
-
- io.nem.symbol.catapult.builders.EmbeddedTransactionBuilder
-
- io.nem.symbol.catapult.builders.EmbeddedMosaicGlobalRestrictionTransactionBuilder
-
- All Implemented Interfaces:
Serializer
public class EmbeddedMosaicGlobalRestrictionTransactionBuilder extends EmbeddedTransactionBuilder implements Serializer
Binary layout for an embedded mosaic global restriction transaction
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedEmbeddedMosaicGlobalRestrictionTransactionBuilder(KeyDto signerPublicKey, byte version, NetworkTypeDto network, EntityTypeDto type, UnresolvedMosaicIdDto mosaicId, UnresolvedMosaicIdDto referenceMosaicId, long restrictionKey, long previousRestrictionValue, long newRestrictionValue, MosaicRestrictionTypeDto previousRestrictionType, MosaicRestrictionTypeDto newRestrictionType)Constructor.protectedEmbeddedMosaicGlobalRestrictionTransactionBuilder(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 EmbeddedMosaicGlobalRestrictionTransactionBuildercreate(KeyDto signerPublicKey, byte version, NetworkTypeDto network, EntityTypeDto type, UnresolvedMosaicIdDto mosaicId, UnresolvedMosaicIdDto referenceMosaicId, long restrictionKey, long previousRestrictionValue, long newRestrictionValue, MosaicRestrictionTypeDto previousRestrictionType, MosaicRestrictionTypeDto newRestrictionType)Creates an instance of EmbeddedMosaicGlobalRestrictionTransactionBuilder.MosaicGlobalRestrictionTransactionBodyBuildergetBody()Gets the body builder of the object.UnresolvedMosaicIdDtogetMosaicId()Gets identifier of the mosaic being restricted.MosaicRestrictionTypeDtogetNewRestrictionType()Gets new restriction type.longgetNewRestrictionValue()Gets new restriction value.MosaicRestrictionTypeDtogetPreviousRestrictionType()Gets previous restriction type.longgetPreviousRestrictionValue()Gets previous restriction value.UnresolvedMosaicIdDtogetReferenceMosaicId()Gets identifier of the mosaic providing the restriction key.longgetRestrictionKey()Gets restriction key relative to the reference mosaic identifier.intgetSize()Gets the size of the object.static EmbeddedMosaicGlobalRestrictionTransactionBuilderloadFromBinary(java.io.DataInputStream stream)Creates an instance of EmbeddedMosaicGlobalRestrictionTransactionBuilder from a stream.byte[]serialize()Serializes an object to bytes.-
Methods inherited from class io.nem.symbol.catapult.builders.EmbeddedTransactionBuilder
create, getNetwork, getSignerPublicKey, getType, getVersion
-
Methods inherited from class io.nem.symbol.catapult.builders.EmbeddedTransactionHeaderBuilder
create, getStreamSize
-
-
-
-
Constructor Detail
-
EmbeddedMosaicGlobalRestrictionTransactionBuilder
protected EmbeddedMosaicGlobalRestrictionTransactionBuilder(java.io.DataInputStream stream)
Constructor - Creates an object from stream.- Parameters:
stream- Byte stream to use to serialize the object.
-
EmbeddedMosaicGlobalRestrictionTransactionBuilder
protected EmbeddedMosaicGlobalRestrictionTransactionBuilder(KeyDto signerPublicKey, byte version, NetworkTypeDto network, EntityTypeDto type, UnresolvedMosaicIdDto mosaicId, UnresolvedMosaicIdDto referenceMosaicId, long restrictionKey, long previousRestrictionValue, long newRestrictionValue, MosaicRestrictionTypeDto previousRestrictionType, MosaicRestrictionTypeDto newRestrictionType)
Constructor.- Parameters:
signerPublicKey- Entity signer's public key.version- Entity version.network- Entity network.type- Entity type.mosaicId- Identifier of the mosaic being restricted.referenceMosaicId- Identifier of the mosaic providing the restriction key.restrictionKey- Restriction key relative to the reference mosaic identifier.previousRestrictionValue- Previous restriction value.newRestrictionValue- New restriction value.previousRestrictionType- Previous restriction type.newRestrictionType- New restriction type.
-
-
Method Detail
-
loadFromBinary
public static EmbeddedMosaicGlobalRestrictionTransactionBuilder loadFromBinary(java.io.DataInputStream stream)
Creates an instance of EmbeddedMosaicGlobalRestrictionTransactionBuilder from a stream.- Parameters:
stream- Byte stream to use to serialize the object.- Returns:
- Instance of EmbeddedMosaicGlobalRestrictionTransactionBuilder.
-
create
public static EmbeddedMosaicGlobalRestrictionTransactionBuilder create(KeyDto signerPublicKey, byte version, NetworkTypeDto network, EntityTypeDto type, UnresolvedMosaicIdDto mosaicId, UnresolvedMosaicIdDto referenceMosaicId, long restrictionKey, long previousRestrictionValue, long newRestrictionValue, MosaicRestrictionTypeDto previousRestrictionType, MosaicRestrictionTypeDto newRestrictionType)
Creates an instance of EmbeddedMosaicGlobalRestrictionTransactionBuilder.- Parameters:
signerPublicKey- Entity signer's public key.version- Entity version.network- Entity network.type- Entity type.mosaicId- Identifier of the mosaic being restricted.referenceMosaicId- Identifier of the mosaic providing the restriction key.restrictionKey- Restriction key relative to the reference mosaic identifier.previousRestrictionValue- Previous restriction value.newRestrictionValue- New restriction value.previousRestrictionType- Previous restriction type.newRestrictionType- New restriction type.- Returns:
- Instance of EmbeddedMosaicGlobalRestrictionTransactionBuilder.
-
getMosaicId
public UnresolvedMosaicIdDto getMosaicId()
Gets identifier of the mosaic being restricted.- Returns:
- Identifier of the mosaic being restricted.
-
getReferenceMosaicId
public UnresolvedMosaicIdDto getReferenceMosaicId()
Gets identifier of the mosaic providing the restriction key.- Returns:
- Identifier of the mosaic providing the restriction key.
-
getRestrictionKey
public long getRestrictionKey()
Gets restriction key relative to the reference mosaic identifier.- Returns:
- Restriction key relative to the reference mosaic identifier.
-
getPreviousRestrictionValue
public long getPreviousRestrictionValue()
Gets previous restriction value.- Returns:
- Previous restriction value.
-
getNewRestrictionValue
public long getNewRestrictionValue()
Gets new restriction value.- Returns:
- New restriction value.
-
getPreviousRestrictionType
public MosaicRestrictionTypeDto getPreviousRestrictionType()
Gets previous restriction type.- Returns:
- Previous restriction type.
-
getNewRestrictionType
public MosaicRestrictionTypeDto getNewRestrictionType()
Gets new restriction type.- Returns:
- New restriction type.
-
getSize
public int getSize()
Gets the size of the object.- Specified by:
getSizein interfaceSerializer- Overrides:
getSizein classEmbeddedTransactionBuilder- Returns:
- Size in bytes.
-
getBody
public MosaicGlobalRestrictionTransactionBodyBuilder getBody()
Gets the body builder of the object.- Overrides:
getBodyin classEmbeddedTransactionBuilder- Returns:
- Body builder.
-
serialize
public byte[] serialize()
Serializes an object to bytes.- Specified by:
serializein interfaceSerializer- Overrides:
serializein classEmbeddedTransactionBuilder- Returns:
- Serialized bytes.
-
-