Package io.nem.symbol.catapult.builders
Class AccountAddressRestrictionTransactionBodyBuilder
- java.lang.Object
-
- io.nem.symbol.catapult.builders.AccountAddressRestrictionTransactionBodyBuilder
-
- All Implemented Interfaces:
Serializer
public class AccountAddressRestrictionTransactionBodyBuilder extends java.lang.Object implements Serializer
Binary layout for an account address restriction transaction
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAccountAddressRestrictionTransactionBodyBuilder(java.io.DataInputStream stream)Constructor - Creates an object from stream.protectedAccountAddressRestrictionTransactionBodyBuilder(java.util.EnumSet<AccountRestrictionFlagsDto> restrictionFlags, java.util.List<UnresolvedAddressDto> restrictionAdditions, java.util.List<UnresolvedAddressDto> restrictionDeletions)Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AccountAddressRestrictionTransactionBodyBuildercreate(java.util.EnumSet<AccountRestrictionFlagsDto> restrictionFlags, java.util.List<UnresolvedAddressDto> restrictionAdditions, java.util.List<UnresolvedAddressDto> restrictionDeletions)Creates an instance of AccountAddressRestrictionTransactionBodyBuilder.intgetAccountRestrictionTransactionBody_Reserved1()Gets reserved padding to align restrictionAdditions on 8-byte boundary.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 AccountAddressRestrictionTransactionBodyBuilderloadFromBinary(java.io.DataInputStream stream)Creates an instance of AccountAddressRestrictionTransactionBodyBuilder from a stream.byte[]serialize()Serializes an object to bytes.
-
-
-
Constructor Detail
-
AccountAddressRestrictionTransactionBodyBuilder
protected AccountAddressRestrictionTransactionBodyBuilder(java.io.DataInputStream stream)
Constructor - Creates an object from stream.- Parameters:
stream- Byte stream to use to serialize the object.
-
AccountAddressRestrictionTransactionBodyBuilder
protected AccountAddressRestrictionTransactionBodyBuilder(java.util.EnumSet<AccountRestrictionFlagsDto> restrictionFlags, java.util.List<UnresolvedAddressDto> restrictionAdditions, java.util.List<UnresolvedAddressDto> restrictionDeletions)
Constructor.- Parameters:
restrictionFlags- Account restriction flags.restrictionAdditions- Account restriction additions.restrictionDeletions- Account restriction deletions.
-
-
Method Detail
-
loadFromBinary
public static AccountAddressRestrictionTransactionBodyBuilder loadFromBinary(java.io.DataInputStream stream)
Creates an instance of AccountAddressRestrictionTransactionBodyBuilder from a stream.- Parameters:
stream- Byte stream to use to serialize the object.- Returns:
- Instance of AccountAddressRestrictionTransactionBodyBuilder.
-
create
public static AccountAddressRestrictionTransactionBodyBuilder create(java.util.EnumSet<AccountRestrictionFlagsDto> restrictionFlags, java.util.List<UnresolvedAddressDto> restrictionAdditions, java.util.List<UnresolvedAddressDto> restrictionDeletions)
Creates an instance of AccountAddressRestrictionTransactionBodyBuilder.- Parameters:
restrictionFlags- Account restriction flags.restrictionAdditions- Account restriction additions.restrictionDeletions- Account restriction deletions.- Returns:
- Instance of AccountAddressRestrictionTransactionBodyBuilder.
-
getRestrictionFlags
public java.util.EnumSet<AccountRestrictionFlagsDto> getRestrictionFlags()
Gets account restriction flags.- Returns:
- Account restriction flags.
-
getAccountRestrictionTransactionBody_Reserved1
public int getAccountRestrictionTransactionBody_Reserved1()
Gets reserved padding to align restrictionAdditions on 8-byte boundary.- Returns:
- Reserved padding to align restrictionAdditions on 8-byte boundary.
-
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- Returns:
- Size in bytes.
-
serialize
public byte[] serialize()
Serializes an object to bytes.- Specified by:
serializein interfaceSerializer- Returns:
- Serialized bytes.
-
-