Package io.nem.symbol.catapult.builders
Class HeightActivityBucketBuilder
- java.lang.Object
-
- io.nem.symbol.catapult.builders.HeightActivityBucketBuilder
-
- All Implemented Interfaces:
Serializer
public class HeightActivityBucketBuilder extends java.lang.Object implements Serializer
Account activity bucket
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedHeightActivityBucketBuilder(ImportanceHeightDto startHeight, AmountDto totalFeesPaid, int beneficiaryCount, long rawScore)Constructor.protectedHeightActivityBucketBuilder(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 static HeightActivityBucketBuildercreate(ImportanceHeightDto startHeight, AmountDto totalFeesPaid, int beneficiaryCount, long rawScore)Creates an instance of HeightActivityBucketBuilder.intgetBeneficiaryCount()Gets number of times account has been used as a beneficiary.longgetRawScore()Gets raw importance score.intgetSize()Gets the size of the object.ImportanceHeightDtogetStartHeight()Gets activity start height.AmountDtogetTotalFeesPaid()Gets total fees paid by account.static HeightActivityBucketBuilderloadFromBinary(java.io.DataInputStream stream)Creates an instance of HeightActivityBucketBuilder from a stream.byte[]serialize()Serializes an object to bytes.
-
-
-
Constructor Detail
-
HeightActivityBucketBuilder
protected HeightActivityBucketBuilder(java.io.DataInputStream stream)
Constructor - Creates an object from stream.- Parameters:
stream- Byte stream to use to serialize the object.
-
HeightActivityBucketBuilder
protected HeightActivityBucketBuilder(ImportanceHeightDto startHeight, AmountDto totalFeesPaid, int beneficiaryCount, long rawScore)
Constructor.- Parameters:
startHeight- Activity start height.totalFeesPaid- Total fees paid by account.beneficiaryCount- Number of times account has been used as a beneficiary.rawScore- Raw importance score.
-
-
Method Detail
-
loadFromBinary
public static HeightActivityBucketBuilder loadFromBinary(java.io.DataInputStream stream)
Creates an instance of HeightActivityBucketBuilder from a stream.- Parameters:
stream- Byte stream to use to serialize the object.- Returns:
- Instance of HeightActivityBucketBuilder.
-
create
public static HeightActivityBucketBuilder create(ImportanceHeightDto startHeight, AmountDto totalFeesPaid, int beneficiaryCount, long rawScore)
Creates an instance of HeightActivityBucketBuilder.- Parameters:
startHeight- Activity start height.totalFeesPaid- Total fees paid by account.beneficiaryCount- Number of times account has been used as a beneficiary.rawScore- Raw importance score.- Returns:
- Instance of HeightActivityBucketBuilder.
-
getStartHeight
public ImportanceHeightDto getStartHeight()
Gets activity start height.- Returns:
- Activity start height.
-
getTotalFeesPaid
public AmountDto getTotalFeesPaid()
Gets total fees paid by account.- Returns:
- Total fees paid by account.
-
getBeneficiaryCount
public int getBeneficiaryCount()
Gets number of times account has been used as a beneficiary.- Returns:
- Number of times account has been used as a beneficiary.
-
getRawScore
public long getRawScore()
Gets raw importance score.- Returns:
- Raw importance score.
-
getSize
public int getSize()
Gets the size of the object.- Specified by:
getSizein interfaceSerializer- Returns:
- Size in bytes.
-
serialize
public byte[] serialize()
Serializes an object to bytes.- Specified by:
serializein interfaceSerializer- Returns:
- Serialized bytes.
-
-