Class HashLockInfoBuilder

    • Constructor Detail

      • HashLockInfoBuilder

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

        protected HashLockInfoBuilder​(short version,
                                      AddressDto ownerAddress,
                                      MosaicBuilder mosaic,
                                      HeightDto endHeight,
                                      LockStatusDto status,
                                      Hash256Dto hash)
        Constructor.
        Parameters:
        version - Serialization version.
        ownerAddress - Owner address.
        mosaic - Mosaic associated with lock.
        endHeight - Height at which the lock expires.
        status - Flag indicating whether or not the lock was already used.
        hash - Hash.
    • Method Detail

      • loadFromBinary

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

        public static HashLockInfoBuilder create​(short version,
                                                 AddressDto ownerAddress,
                                                 MosaicBuilder mosaic,
                                                 HeightDto endHeight,
                                                 LockStatusDto status,
                                                 Hash256Dto hash)
        Creates an instance of HashLockInfoBuilder.
        Parameters:
        version - Serialization version.
        ownerAddress - Owner address.
        mosaic - Mosaic associated with lock.
        endHeight - Height at which the lock expires.
        status - Flag indicating whether or not the lock was already used.
        hash - Hash.
        Returns:
        Instance of HashLockInfoBuilder.
      • getOwnerAddress

        public AddressDto getOwnerAddress()
        Gets owner address.
        Returns:
        Owner address.
      • getMosaic

        public MosaicBuilder getMosaic()
        Gets mosaic associated with lock.
        Returns:
        Mosaic associated with lock.
      • getEndHeight

        public HeightDto getEndHeight()
        Gets height at which the lock expires.
        Returns:
        Height at which the lock expires.
      • getStatus

        public LockStatusDto getStatus()
        Gets flag indicating whether or not the lock was already used.
        Returns:
        Flag indicating whether or not the lock was already used.
      • getHash

        public Hash256Dto getHash()
        Gets hash.
        Returns:
        Hash.