Package io.nem.symbol.catapult.builders
Class AccountOperationRestrictionTransactionBodyBuilder
- java.lang.Object
-
- io.nem.symbol.catapult.builders.AccountOperationRestrictionTransactionBodyBuilder
-
- All Implemented Interfaces:
Serializer
public class AccountOperationRestrictionTransactionBodyBuilder extends java.lang.Object implements Serializer
Binary layout for an account operation restriction transaction
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAccountOperationRestrictionTransactionBodyBuilder(java.io.DataInputStream stream)Constructor - Creates an object from stream.protectedAccountOperationRestrictionTransactionBodyBuilder(java.util.EnumSet<AccountRestrictionFlagsDto> restrictionFlags, java.util.List<EntityTypeDto> restrictionAdditions, java.util.List<EntityTypeDto> restrictionDeletions)Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AccountOperationRestrictionTransactionBodyBuildercreate(java.util.EnumSet<AccountRestrictionFlagsDto> restrictionFlags, java.util.List<EntityTypeDto> restrictionAdditions, java.util.List<EntityTypeDto> restrictionDeletions)Creates an instance of AccountOperationRestrictionTransactionBodyBuilder.intgetAccountRestrictionTransactionBody_Reserved1()Gets reserved padding to align restrictionAdditions on 8-byte boundary.java.util.List<EntityTypeDto>getRestrictionAdditions()Gets account restriction additions.java.util.List<EntityTypeDto>getRestrictionDeletions()Gets account restriction deletions.java.util.EnumSet<AccountRestrictionFlagsDto>getRestrictionFlags()Gets account restriction flags.intgetSize()Gets the size of the object.static AccountOperationRestrictionTransactionBodyBuilderloadFromBinary(java.io.DataInputStream stream)Creates an instance of AccountOperationRestrictionTransactionBodyBuilder from a stream.byte[]serialize()Serializes an object to bytes.
-
-
-
Constructor Detail
-
AccountOperationRestrictionTransactionBodyBuilder
protected AccountOperationRestrictionTransactionBodyBuilder(java.io.DataInputStream stream)
Constructor - Creates an object from stream.- Parameters:
stream- Byte stream to use to serialize the object.
-
AccountOperationRestrictionTransactionBodyBuilder
protected AccountOperationRestrictionTransactionBodyBuilder(java.util.EnumSet<AccountRestrictionFlagsDto> restrictionFlags, java.util.List<EntityTypeDto> restrictionAdditions, java.util.List<EntityTypeDto> restrictionDeletions)
Constructor.- Parameters:
restrictionFlags- Account restriction flags.restrictionAdditions- Account restriction additions.restrictionDeletions- Account restriction deletions.
-
-
Method Detail
-
loadFromBinary
public static AccountOperationRestrictionTransactionBodyBuilder loadFromBinary(java.io.DataInputStream stream)
Creates an instance of AccountOperationRestrictionTransactionBodyBuilder from a stream.- Parameters:
stream- Byte stream to use to serialize the object.- Returns:
- Instance of AccountOperationRestrictionTransactionBodyBuilder.
-
create
public static AccountOperationRestrictionTransactionBodyBuilder create(java.util.EnumSet<AccountRestrictionFlagsDto> restrictionFlags, java.util.List<EntityTypeDto> restrictionAdditions, java.util.List<EntityTypeDto> restrictionDeletions)
Creates an instance of AccountOperationRestrictionTransactionBodyBuilder.- Parameters:
restrictionFlags- Account restriction flags.restrictionAdditions- Account restriction additions.restrictionDeletions- Account restriction deletions.- Returns:
- Instance of AccountOperationRestrictionTransactionBodyBuilder.
-
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<EntityTypeDto> getRestrictionAdditions()
Gets account restriction additions.- Returns:
- Account restriction additions.
-
getRestrictionDeletions
public java.util.List<EntityTypeDto> 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.
-
-