nxt

## Class Fee.SizeBasedFee

- java.lang.Object
- - nxt.Fee.SizeBasedFee

- All Implemented Interfaces:
    Fee
  Enclosing interface:
    Fee

      public abstract static class Fee.SizeBasedFee
      extends java.lang.Object
      implements Fee

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from interface nxt.Fee

      `Fee.ConstantFee, Fee.SizeBasedFee`

  - ### Field Summary

    - ### Fields inherited from interface nxt.Fee

      `DEFAULT_FEE, NONE`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `SizeBasedFee(long feePerSize)`
    `SizeBasedFee(long constantFee, long feePerSize)`
    `SizeBasedFee(long constantFee, long feePerSize, int unitSize)`

  - ### Method Summary

    All Methods Instance Methods Abstract Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `long` | `getFee(nxt.TransactionImpl transaction, Appendix appendage)`
    `abstract int` | `getSize(nxt.TransactionImpl transaction, Appendix appendage)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### SizeBasedFee

          public SizeBasedFee(long feePerSize)

    - #### SizeBasedFee

          public SizeBasedFee(long constantFee,
                              long feePerSize)

    - #### SizeBasedFee

          public SizeBasedFee(long constantFee,
                              long feePerSize,
                              int unitSize)

  - ### Method Detail

    - #### getFee

          public final long getFee(nxt.TransactionImpl transaction,
                                   Appendix appendage)

      Specified by:
        `getFee` in interface `Fee`

    - #### getSize

          public abstract int getSize(nxt.TransactionImpl transaction,
                                      Appendix appendage)