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