Class AccountOperationRestrictionTransactionBodyBuilder

  • All Implemented Interfaces:
    Serializer

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

      • AccountOperationRestrictionTransactionBodyBuilder

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

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

      • loadFromBinary

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

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

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

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

        public java.util.List<EntityTypeDto> 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.