Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk
Class CustomFeeBase<F extends CustomFeeBase<F>>
java.lang.Object
com.hedera.hashgraph.sdk.CustomFee
com.hedera.hashgraph.sdk.CustomFeeBase<F>
- Direct Known Subclasses:
CustomFixedFee,CustomFractionalFee,CustomRoyaltyFee
-
Field Summary
Fields inherited from class com.hedera.hashgraph.sdk.CustomFee
allCollectorsAreExempt, feeCollectorAccountId -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) CustomFeeCreate a deep clone.(package private) abstract Fprotected FfinishDeepClone(CustomFeeBase<F> source) Finishes the deep clone by setting the fields of theCustomFeeBaseclasssetAllCollectorsAreExempt(boolean allCollectorsAreExempt) If true, exempts all the token's fee collection accounts from this fee.setFeeCollectorAccountId(AccountId feeCollectorAccountId) Assign the fee collector account id.Methods inherited from class com.hedera.hashgraph.sdk.CustomFee
deepCloneList, finishToProtobuf, fromBytes, fromProtobuf, fromProtobufInner, getAllCollectorsAreExempt, getFeeCollectorAccountId, toBytes, toProtobuf, toStringHelper, validateChecksums
-
Constructor Details
-
CustomFeeBase
CustomFeeBase()
-
-
Method Details
-
setFeeCollectorAccountId
Assign the fee collector account id.- Parameters:
feeCollectorAccountId- the account id of the fee collector- Returns:
this
-
setAllCollectorsAreExempt
If true, exempts all the token's fee collection accounts from this fee. (The token's treasury and the above fee_collector_account_id will always be exempt. Please see HIP-573 for details.)- Parameters:
allCollectorsAreExempt- whether all fee collectors are exempt from fees- Returns:
this
-
deepCloneSubclass
-
finishDeepClone
Finishes the deep clone by setting the fields of theCustomFeeBaseclass- Parameters:
source- the source object- Returns:
- the cloned object
-
deepClone
CustomFee deepClone()Description copied from class:CustomFeeCreate a deep clone.
-