Package io.nem.symbol.catapult.builders
Class AccountAddressRestrictionTransactionBuilder
- java.lang.Object
-
- io.nem.symbol.catapult.builders.TransactionBuilder
-
- io.nem.symbol.catapult.builders.AccountAddressRestrictionTransactionBuilder
-
- All Implemented Interfaces:
Serializer
public class AccountAddressRestrictionTransactionBuilder extends TransactionBuilder implements Serializer
Binary layout for a non-embedded account address restriction transaction
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAccountAddressRestrictionTransactionBuilder(SignatureDto signature, KeyDto signerPublicKey, byte version, NetworkTypeDto network, EntityTypeDto type, AmountDto fee, TimestampDto deadline, java.util.EnumSet<AccountRestrictionFlagsDto> restrictionFlags, java.util.List<UnresolvedAddressDto> restrictionAdditions, java.util.List<UnresolvedAddressDto> restrictionDeletions)Constructor.protectedAccountAddressRestrictionTransactionBuilder(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 AccountAddressRestrictionTransactionBuildercreate(SignatureDto signature, KeyDto signerPublicKey, byte version, NetworkTypeDto network, EntityTypeDto type, AmountDto fee, TimestampDto deadline, java.util.EnumSet<AccountRestrictionFlagsDto> restrictionFlags, java.util.List<UnresolvedAddressDto> restrictionAdditions, java.util.List<UnresolvedAddressDto> restrictionDeletions)Creates an instance of AccountAddressRestrictionTransactionBuilder.AccountAddressRestrictionTransactionBodyBuildergetBody()Gets the body builder of the object.java.util.List<UnresolvedAddressDto>getRestrictionAdditions()Gets account restriction additions.java.util.List<UnresolvedAddressDto>getRestrictionDeletions()Gets account restriction deletions.java.util.EnumSet<AccountRestrictionFlagsDto>getRestrictionFlags()Gets account restriction flags.intgetSize()Gets the size of the object.static AccountAddressRestrictionTransactionBuilderloadFromBinary(java.io.DataInputStream stream)Creates an instance of AccountAddressRestrictionTransactionBuilder 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
-
AccountAddressRestrictionTransactionBuilder
protected AccountAddressRestrictionTransactionBuilder(java.io.DataInputStream stream)
Constructor - Creates an object from stream.- Parameters:
stream- Byte stream to use to serialize the object.
-
AccountAddressRestrictionTransactionBuilder
protected AccountAddressRestrictionTransactionBuilder(SignatureDto signature, KeyDto signerPublicKey, byte version, NetworkTypeDto network, EntityTypeDto type, AmountDto fee, TimestampDto deadline, java.util.EnumSet<AccountRestrictionFlagsDto> restrictionFlags, java.util.List<UnresolvedAddressDto> restrictionAdditions, java.util.List<UnresolvedAddressDto> restrictionDeletions)
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.restrictionFlags- Account restriction flags.restrictionAdditions- Account restriction additions.restrictionDeletions- Account restriction deletions.
-
-
Method Detail
-
loadFromBinary
public static AccountAddressRestrictionTransactionBuilder loadFromBinary(java.io.DataInputStream stream)
Creates an instance of AccountAddressRestrictionTransactionBuilder from a stream.- Parameters:
stream- Byte stream to use to serialize the object.- Returns:
- Instance of AccountAddressRestrictionTransactionBuilder.
-
create
public static AccountAddressRestrictionTransactionBuilder create(SignatureDto signature, KeyDto signerPublicKey, byte version, NetworkTypeDto network, EntityTypeDto type, AmountDto fee, TimestampDto deadline, java.util.EnumSet<AccountRestrictionFlagsDto> restrictionFlags, java.util.List<UnresolvedAddressDto> restrictionAdditions, java.util.List<UnresolvedAddressDto> restrictionDeletions)
Creates an instance of AccountAddressRestrictionTransactionBuilder.- 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.restrictionFlags- Account restriction flags.restrictionAdditions- Account restriction additions.restrictionDeletions- Account restriction deletions.- Returns:
- Instance of AccountAddressRestrictionTransactionBuilder.
-
getRestrictionFlags
public java.util.EnumSet<AccountRestrictionFlagsDto> getRestrictionFlags()
Gets account restriction flags.- Returns:
- Account restriction flags.
-
getRestrictionAdditions
public java.util.List<UnresolvedAddressDto> getRestrictionAdditions()
Gets account restriction additions.- Returns:
- Account restriction additions.
-
getRestrictionDeletions
public java.util.List<UnresolvedAddressDto> 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 classTransactionBuilder- Returns:
- Size in bytes.
-
getBody
public AccountAddressRestrictionTransactionBodyBuilder 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.
-
-