Package nxt

Class Fee.SizeBasedFee

  • All Implemented Interfaces:
    Fee
    Enclosing interface:
    Fee

    public abstract static class Fee.SizeBasedFee
    extends java.lang.Object
    implements Fee
    • 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)