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

abstract class CustomFeeBase<F extends CustomFeeBase<F>> extends CustomFee
  • Constructor Details

    • CustomFeeBase

      CustomFeeBase()
  • Method Details

    • setFeeCollectorAccountId

      public F setFeeCollectorAccountId(AccountId feeCollectorAccountId)
      Assign the fee collector account id.
      Parameters:
      feeCollectorAccountId - the account id of the fee collector
      Returns:
      this
    • setAllCollectorsAreExempt

      public F setAllCollectorsAreExempt(boolean allCollectorsAreExempt)
      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

      abstract F deepCloneSubclass()
    • finishDeepClone

      protected F finishDeepClone(CustomFeeBase<F> source)
      Finishes the deep clone by setting the fields of the CustomFeeBase class
      Parameters:
      source - the source object
      Returns:
      the cloned object
    • deepClone

      CustomFee deepClone()
      Description copied from class: CustomFee
      Create a deep clone.
      Specified by:
      deepClone in class CustomFee
      Returns:
      the correct cloned fee type