Enum Class FeeAssessmentMethod

java.lang.Object
java.lang.Enum<FeeAssessmentMethod>
com.hedera.hashgraph.sdk.FeeAssessmentMethod
All Implemented Interfaces:
Serializable, Comparable<FeeAssessmentMethod>, Constable

public enum FeeAssessmentMethod extends Enum<FeeAssessmentMethod>
Enum for the fee assessment method.

The terminology here (exclusive vs inclusive) is borrowed from tax assessment.

  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    If Alice is paying Bob, and an exclusive fractional fee is collected to be sent to Charlie, the amount Alice declares she will pay in the transfer transaction does not include the fee amount.
    If Alice is paying Bob, and an inclusive fractional fee is collected to be sent to Charlie, the amount Alice declares she will pay in the transfer transaction includes the fee amount.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) final boolean
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    (package private) static FeeAssessmentMethod
    valueOf(boolean code)
    Returns the enum constant of this class with the specified name.
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • INCLUSIVE

      public static final FeeAssessmentMethod INCLUSIVE
      If Alice is paying Bob, and an inclusive fractional fee is collected to be sent to Charlie, the amount Alice declares she will pay in the transfer transaction includes the fee amount.

      In other words, Bob receives the amount that Alice intended to send, minus the fee.

    • EXCLUSIVE

      public static final FeeAssessmentMethod EXCLUSIVE
      If Alice is paying Bob, and an exclusive fractional fee is collected to be sent to Charlie, the amount Alice declares she will pay in the transfer transaction does not include the fee amount.

      In other words, Alice is charged the fee in addition to the amount she intended to send to Bob.

  • Field Details

    • code

      final boolean code
  • Method Details

    • values

      public static FeeAssessmentMethod[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static FeeAssessmentMethod valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • valueOf

      static FeeAssessmentMethod valueOf(boolean code)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      code - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • toString

      public String toString()
      Overrides:
      toString in class Enum<FeeAssessmentMethod>