Package io.nem.symbol.catapult.builders
Class AccountRestrictionsInfoBuilder
- java.lang.Object
-
- io.nem.symbol.catapult.builders.AccountRestrictionsInfoBuilder
-
- All Implemented Interfaces:
Serializer
public class AccountRestrictionsInfoBuilder extends java.lang.Object implements Serializer
Binary layout for account restrictions
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAccountRestrictionsInfoBuilder(java.io.DataInputStream stream)Constructor - Creates an object from stream.protectedAccountRestrictionsInfoBuilder(java.util.EnumSet<AccountRestrictionFlagsDto> restrictionFlags, AccountRestrictionAddressValueBuilder addressRestrictions, AccountRestrictionMosaicValueBuilder mosaicIdRestrictions, AccountRestrictionTransactionTypeValueBuilder transactionTypeRestrictions)Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AccountRestrictionsInfoBuildercreate(java.util.EnumSet<AccountRestrictionFlagsDto> restrictionFlags, AccountRestrictionAddressValueBuilder addressRestrictions, AccountRestrictionMosaicValueBuilder mosaicIdRestrictions, AccountRestrictionTransactionTypeValueBuilder transactionTypeRestrictions)Creates an instance of AccountRestrictionsInfoBuilder.AccountRestrictionAddressValueBuildergetAddressRestrictions()Gets address restrictions.AccountRestrictionMosaicValueBuildergetMosaicIdRestrictions()Gets mosaic identifier restrictions.java.util.EnumSet<AccountRestrictionFlagsDto>getRestrictionFlags()Gets raw restriction flags.intgetSize()Gets the size of the object.AccountRestrictionTransactionTypeValueBuildergetTransactionTypeRestrictions()Gets transaction type restrictions.static AccountRestrictionsInfoBuilderloadFromBinary(java.io.DataInputStream stream)Creates an instance of AccountRestrictionsInfoBuilder from a stream.byte[]serialize()Serializes an object to bytes.
-
-
-
Constructor Detail
-
AccountRestrictionsInfoBuilder
protected AccountRestrictionsInfoBuilder(java.io.DataInputStream stream)
Constructor - Creates an object from stream.- Parameters:
stream- Byte stream to use to serialize the object.
-
AccountRestrictionsInfoBuilder
protected AccountRestrictionsInfoBuilder(java.util.EnumSet<AccountRestrictionFlagsDto> restrictionFlags, AccountRestrictionAddressValueBuilder addressRestrictions, AccountRestrictionMosaicValueBuilder mosaicIdRestrictions, AccountRestrictionTransactionTypeValueBuilder transactionTypeRestrictions)
Constructor.- Parameters:
restrictionFlags- Raw restriction flags.addressRestrictions- Address restrictions.mosaicIdRestrictions- Mosaic identifier restrictions.transactionTypeRestrictions- Transaction type restrictions.
-
-
Method Detail
-
loadFromBinary
public static AccountRestrictionsInfoBuilder loadFromBinary(java.io.DataInputStream stream)
Creates an instance of AccountRestrictionsInfoBuilder from a stream.- Parameters:
stream- Byte stream to use to serialize the object.- Returns:
- Instance of AccountRestrictionsInfoBuilder.
-
create
public static AccountRestrictionsInfoBuilder create(java.util.EnumSet<AccountRestrictionFlagsDto> restrictionFlags, AccountRestrictionAddressValueBuilder addressRestrictions, AccountRestrictionMosaicValueBuilder mosaicIdRestrictions, AccountRestrictionTransactionTypeValueBuilder transactionTypeRestrictions)
Creates an instance of AccountRestrictionsInfoBuilder.- Parameters:
restrictionFlags- Raw restriction flags.addressRestrictions- Address restrictions.mosaicIdRestrictions- Mosaic identifier restrictions.transactionTypeRestrictions- Transaction type restrictions.- Returns:
- Instance of AccountRestrictionsInfoBuilder.
-
getRestrictionFlags
public java.util.EnumSet<AccountRestrictionFlagsDto> getRestrictionFlags()
Gets raw restriction flags.- Returns:
- Raw restriction flags.
-
getAddressRestrictions
public AccountRestrictionAddressValueBuilder getAddressRestrictions()
Gets address restrictions.- Returns:
- Address restrictions.
-
getMosaicIdRestrictions
public AccountRestrictionMosaicValueBuilder getMosaicIdRestrictions()
Gets mosaic identifier restrictions.- Returns:
- Mosaic identifier restrictions.
-
getTransactionTypeRestrictions
public AccountRestrictionTransactionTypeValueBuilder getTransactionTypeRestrictions()
Gets transaction type restrictions.- Returns:
- Transaction type restrictions.
-
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.
-
-