Package io.nem.symbol.catapult.builders
Class EmbeddedAccountMosaicRestrictionTransactionBuilder
- java.lang.Object
-
- io.nem.symbol.catapult.builders.EmbeddedTransactionHeaderBuilder
-
- io.nem.symbol.catapult.builders.EmbeddedTransactionBuilder
-
- io.nem.symbol.catapult.builders.EmbeddedAccountMosaicRestrictionTransactionBuilder
-
- All Implemented Interfaces:
Serializer
public class EmbeddedAccountMosaicRestrictionTransactionBuilder extends EmbeddedTransactionBuilder implements Serializer
Binary layout for an embedded account mosaic restriction transaction
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedEmbeddedAccountMosaicRestrictionTransactionBuilder(KeyDto signerPublicKey, byte version, NetworkTypeDto network, EntityTypeDto type, java.util.EnumSet<AccountRestrictionFlagsDto> restrictionFlags, java.util.List<UnresolvedMosaicIdDto> restrictionAdditions, java.util.List<UnresolvedMosaicIdDto> restrictionDeletions)Constructor.protectedEmbeddedAccountMosaicRestrictionTransactionBuilder(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 EmbeddedAccountMosaicRestrictionTransactionBuildercreate(KeyDto signerPublicKey, byte version, NetworkTypeDto network, EntityTypeDto type, java.util.EnumSet<AccountRestrictionFlagsDto> restrictionFlags, java.util.List<UnresolvedMosaicIdDto> restrictionAdditions, java.util.List<UnresolvedMosaicIdDto> restrictionDeletions)Creates an instance of EmbeddedAccountMosaicRestrictionTransactionBuilder.AccountMosaicRestrictionTransactionBodyBuildergetBody()Gets the body builder of the object.java.util.List<UnresolvedMosaicIdDto>getRestrictionAdditions()Gets account restriction additions.java.util.List<UnresolvedMosaicIdDto>getRestrictionDeletions()Gets account restriction deletions.java.util.EnumSet<AccountRestrictionFlagsDto>getRestrictionFlags()Gets account restriction flags.intgetSize()Gets the size of the object.static EmbeddedAccountMosaicRestrictionTransactionBuilderloadFromBinary(java.io.DataInputStream stream)Creates an instance of EmbeddedAccountMosaicRestrictionTransactionBuilder 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
-
EmbeddedAccountMosaicRestrictionTransactionBuilder
protected EmbeddedAccountMosaicRestrictionTransactionBuilder(java.io.DataInputStream stream)
Constructor - Creates an object from stream.- Parameters:
stream- Byte stream to use to serialize the object.
-
EmbeddedAccountMosaicRestrictionTransactionBuilder
protected EmbeddedAccountMosaicRestrictionTransactionBuilder(KeyDto signerPublicKey, byte version, NetworkTypeDto network, EntityTypeDto type, java.util.EnumSet<AccountRestrictionFlagsDto> restrictionFlags, java.util.List<UnresolvedMosaicIdDto> restrictionAdditions, java.util.List<UnresolvedMosaicIdDto> restrictionDeletions)
Constructor.- Parameters:
signerPublicKey- Entity signer's public key.version- Entity version.network- Entity network.type- Entity type.restrictionFlags- Account restriction flags.restrictionAdditions- Account restriction additions.restrictionDeletions- Account restriction deletions.
-
-
Method Detail
-
loadFromBinary
public static EmbeddedAccountMosaicRestrictionTransactionBuilder loadFromBinary(java.io.DataInputStream stream)
Creates an instance of EmbeddedAccountMosaicRestrictionTransactionBuilder from a stream.- Parameters:
stream- Byte stream to use to serialize the object.- Returns:
- Instance of EmbeddedAccountMosaicRestrictionTransactionBuilder.
-
create
public static EmbeddedAccountMosaicRestrictionTransactionBuilder create(KeyDto signerPublicKey, byte version, NetworkTypeDto network, EntityTypeDto type, java.util.EnumSet<AccountRestrictionFlagsDto> restrictionFlags, java.util.List<UnresolvedMosaicIdDto> restrictionAdditions, java.util.List<UnresolvedMosaicIdDto> restrictionDeletions)
Creates an instance of EmbeddedAccountMosaicRestrictionTransactionBuilder.- Parameters:
signerPublicKey- Entity signer's public key.version- Entity version.network- Entity network.type- Entity type.restrictionFlags- Account restriction flags.restrictionAdditions- Account restriction additions.restrictionDeletions- Account restriction deletions.- Returns:
- Instance of EmbeddedAccountMosaicRestrictionTransactionBuilder.
-
getRestrictionFlags
public java.util.EnumSet<AccountRestrictionFlagsDto> getRestrictionFlags()
Gets account restriction flags.- Returns:
- Account restriction flags.
-
getRestrictionAdditions
public java.util.List<UnresolvedMosaicIdDto> getRestrictionAdditions()
Gets account restriction additions.- Returns:
- Account restriction additions.
-
getRestrictionDeletions
public java.util.List<UnresolvedMosaicIdDto> getRestrictionDeletions()
Gets account restriction deletions.- Returns:
- Account restriction deletions.
-
getSize
public int getSize()
Gets the size of the object.- Specified by:
getSizein interfaceSerializer- Overrides:
getSizein classEmbeddedTransactionBuilder- Returns:
- Size in bytes.
-
getBody
public AccountMosaicRestrictionTransactionBodyBuilder 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.
-
-