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