Package io.nem.symbol.catapult.builders
Class AccountRestrictionTransactionTypeValueBuilder
- java.lang.Object
-
- io.nem.symbol.catapult.builders.AccountRestrictionTransactionTypeValueBuilder
-
- All Implemented Interfaces:
Serializer
public class AccountRestrictionTransactionTypeValueBuilder extends java.lang.Object implements Serializer
Binary layout for transaction type based account restriction
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAccountRestrictionTransactionTypeValueBuilder(java.io.DataInputStream stream)Constructor - Creates an object from stream.protectedAccountRestrictionTransactionTypeValueBuilder(java.util.List<EntityTypeDto> restrictionValues)Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AccountRestrictionTransactionTypeValueBuildercreate(java.util.List<EntityTypeDto> restrictionValues)Creates an instance of AccountRestrictionTransactionTypeValueBuilder.java.util.List<EntityTypeDto>getRestrictionValues()Gets restriction values.intgetSize()Gets the size of the object.static AccountRestrictionTransactionTypeValueBuilderloadFromBinary(java.io.DataInputStream stream)Creates an instance of AccountRestrictionTransactionTypeValueBuilder from a stream.byte[]serialize()Serializes an object to bytes.
-
-
-
Constructor Detail
-
AccountRestrictionTransactionTypeValueBuilder
protected AccountRestrictionTransactionTypeValueBuilder(java.io.DataInputStream stream)
Constructor - Creates an object from stream.- Parameters:
stream- Byte stream to use to serialize the object.
-
AccountRestrictionTransactionTypeValueBuilder
protected AccountRestrictionTransactionTypeValueBuilder(java.util.List<EntityTypeDto> restrictionValues)
Constructor.- Parameters:
restrictionValues- Restriction values.
-
-
Method Detail
-
loadFromBinary
public static AccountRestrictionTransactionTypeValueBuilder loadFromBinary(java.io.DataInputStream stream)
Creates an instance of AccountRestrictionTransactionTypeValueBuilder from a stream.- Parameters:
stream- Byte stream to use to serialize the object.- Returns:
- Instance of AccountRestrictionTransactionTypeValueBuilder.
-
create
public static AccountRestrictionTransactionTypeValueBuilder create(java.util.List<EntityTypeDto> restrictionValues)
Creates an instance of AccountRestrictionTransactionTypeValueBuilder.- Parameters:
restrictionValues- Restriction values.- Returns:
- Instance of AccountRestrictionTransactionTypeValueBuilder.
-
getRestrictionValues
public java.util.List<EntityTypeDto> getRestrictionValues()
Gets restriction values.- Returns:
- Restriction values.
-
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.
-
-