use of io.nem.symbol.catapult.builders.AccountRestrictionsInfoBuilder in project nem2-sdk-java by nemtech.
the class AccountRestrictions method serialize.
/**
* @return serializes the state of this object.
*/
public byte[] serialize() {
AddressDto address = SerializationUtils.toAddressDto(getAddress());
List<AccountRestrictionsInfoBuilder> restrictions = getRestrictions().stream().map(this::toAccountRestrictionsInfoBuilder).collect(Collectors.toList());
return AccountRestrictionsBuilder.create((short) getVersion(), address, restrictions).serialize();
}
Aggregations