Class MosaicRestrictionKeyDto

  • All Implemented Interfaces:
    Serializer

    public final class MosaicRestrictionKeyDto
    extends java.lang.Object
    implements Serializer
    Mosaic restriction key.
    • Constructor Detail

      • MosaicRestrictionKeyDto

        public MosaicRestrictionKeyDto​(long mosaicRestrictionKey)
        Constructor.
        Parameters:
        mosaicRestrictionKey - Mosaic restriction key.
      • MosaicRestrictionKeyDto

        public MosaicRestrictionKeyDto​(java.io.DataInputStream stream)
        Constructor - Creates an object from stream.
        Parameters:
        stream - Byte stream to use to serialize.
    • Method Detail

      • getMosaicRestrictionKey

        public long getMosaicRestrictionKey()
        Gets Mosaic restriction key.
        Returns:
        Mosaic restriction key.
      • getSize

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

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

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