Class ImportanceHeightDto

  • All Implemented Interfaces:
    Serializer

    public final class ImportanceHeightDto
    extends java.lang.Object
    implements Serializer
    Importance height.
    • Constructor Detail

      • ImportanceHeightDto

        public ImportanceHeightDto​(long importanceHeight)
        Constructor.
        Parameters:
        importanceHeight - Importance height.
      • ImportanceHeightDto

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

      • getImportanceHeight

        public long getImportanceHeight()
        Gets Importance height.
        Returns:
        Importance height.
      • getSize

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

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

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