Class AccountAddressRestrictionTransactionBodyBuilder

  • All Implemented Interfaces:
    Serializer

    public class AccountAddressRestrictionTransactionBodyBuilder
    extends java.lang.Object
    implements Serializer
    Binary layout for an account address restriction transaction
    • Constructor Detail

      • AccountAddressRestrictionTransactionBodyBuilder

        protected AccountAddressRestrictionTransactionBodyBuilder​(java.io.DataInputStream stream)
        Constructor - Creates an object from stream.
        Parameters:
        stream - Byte stream to use to serialize the object.
      • AccountAddressRestrictionTransactionBodyBuilder

        protected AccountAddressRestrictionTransactionBodyBuilder​(java.util.EnumSet<AccountRestrictionFlagsDto> restrictionFlags,
                                                                  java.util.List<UnresolvedAddressDto> restrictionAdditions,
                                                                  java.util.List<UnresolvedAddressDto> restrictionDeletions)
        Constructor.
        Parameters:
        restrictionFlags - Account restriction flags.
        restrictionAdditions - Account restriction additions.
        restrictionDeletions - Account restriction deletions.
    • Method Detail

      • loadFromBinary

        public static AccountAddressRestrictionTransactionBodyBuilder loadFromBinary​(java.io.DataInputStream stream)
        Creates an instance of AccountAddressRestrictionTransactionBodyBuilder from a stream.
        Parameters:
        stream - Byte stream to use to serialize the object.
        Returns:
        Instance of AccountAddressRestrictionTransactionBodyBuilder.
      • create

        public static AccountAddressRestrictionTransactionBodyBuilder create​(java.util.EnumSet<AccountRestrictionFlagsDto> restrictionFlags,
                                                                             java.util.List<UnresolvedAddressDto> restrictionAdditions,
                                                                             java.util.List<UnresolvedAddressDto> restrictionDeletions)
        Creates an instance of AccountAddressRestrictionTransactionBodyBuilder.
        Parameters:
        restrictionFlags - Account restriction flags.
        restrictionAdditions - Account restriction additions.
        restrictionDeletions - Account restriction deletions.
        Returns:
        Instance of AccountAddressRestrictionTransactionBodyBuilder.
      • getRestrictionFlags

        public java.util.EnumSet<AccountRestrictionFlagsDto> getRestrictionFlags()
        Gets account restriction flags.
        Returns:
        Account restriction flags.
      • getRestrictionAdditions

        public java.util.List<UnresolvedAddressDto> getRestrictionAdditions()
        Gets account restriction additions.
        Returns:
        Account restriction additions.
      • getRestrictionDeletions

        public java.util.List<UnresolvedAddressDto> getRestrictionDeletions()
        Gets account restriction deletions.
        Returns:
        Account restriction deletions.
      • getSize

        public int getSize()
        Gets the size of the object.
        Specified by:
        getSize in interface Serializer
        Returns:
        Size in bytes.
      • serialize

        public byte[] serialize()
        Serializes an object to bytes.
        Specified by:
        serialize in interface Serializer
        Returns:
        Serialized bytes.