Package io.nem.symbol.catapult.builders
Class BlockFeeMultiplierDto
- java.lang.Object
-
- io.nem.symbol.catapult.builders.BlockFeeMultiplierDto
-
- All Implemented Interfaces:
Serializer
public final class BlockFeeMultiplierDto extends java.lang.Object implements Serializer
Block fee multiplier.
-
-
Constructor Summary
Constructors Constructor Description BlockFeeMultiplierDto(int blockFeeMultiplier)Constructor.BlockFeeMultiplierDto(java.io.DataInputStream stream)Constructor - Creates an object from stream.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBlockFeeMultiplier()Gets Block fee multiplier.intgetSize()Gets the size of the object.static BlockFeeMultiplierDtoloadFromBinary(java.io.DataInputStream stream)Creates an instance of BlockFeeMultiplierDto from a stream.byte[]serialize()Serializes an object to bytes.
-
-
-
Constructor Detail
-
BlockFeeMultiplierDto
public BlockFeeMultiplierDto(int blockFeeMultiplier)
Constructor.- Parameters:
blockFeeMultiplier- Block fee multiplier.
-
BlockFeeMultiplierDto
public BlockFeeMultiplierDto(java.io.DataInputStream stream)
Constructor - Creates an object from stream.- Parameters:
stream- Byte stream to use to serialize.
-
-
Method Detail
-
getBlockFeeMultiplier
public int getBlockFeeMultiplier()
Gets Block fee multiplier.- Returns:
- Block fee multiplier.
-
getSize
public int getSize()
Gets the size of the object.- Specified by:
getSizein interfaceSerializer- Returns:
- Size in bytes.
-
loadFromBinary
public static BlockFeeMultiplierDto loadFromBinary(java.io.DataInputStream stream)
Creates an instance of BlockFeeMultiplierDto from a stream.- Parameters:
stream- Byte stream to use to serialize the object.- Returns:
- Instance of BlockFeeMultiplierDto.
-
serialize
public byte[] serialize()
Serializes an object to bytes.- Specified by:
serializein interfaceSerializer- Returns:
- Serialized bytes.
-
-