类 Transaction
java.lang.Object
cn.nkpro.elcube.utils.xirr.Transaction
Represents a transaction for the purposes of computing the irregular rate
of return.
Note that negative amounts represent deposits into the investment (and so withdrawals from your cash). Positive amounts represent withdrawals from the investment (deposits into cash). Zero amounts are allowed in case your investment is now worthless.
- 另请参阅:
Xirr
-
构造器概要
构造器构造器说明Transaction(double amount, Long when)Construct a Transaction instance with the given amount at the given day.Transaction(double amount, String when)Construct a Transaction instance with the given amount at the given day.Transaction(double amount, LocalDate when)Construct a Transaction instance with the given amount at the given day.Transaction(double amount, Date when)Construct a Transaction instance with the given amount at the given day. -
方法概要
-
构造器详细资料
-
Transaction
Construct a Transaction instance with the given amount at the given day.- 参数:
amount- the amount transferredwhen- the day the transaction took place
-
Transaction
Construct a Transaction instance with the given amount at the given day.- 参数:
amount- the amount transferredwhen- the day the transaction took place
-
Transaction
Construct a Transaction instance with the given amount at the given day.- 参数:
amount- the amount transferredwhen- the second the transaction took place
-
Transaction
Construct a Transaction instance with the given amount at the given day.- 参数:
amount- the amount transferredwhen- the day the transaction took place, seeLocalDate.parse(CharSequence)for the format
-
-
方法详细资料
-
getAmount
public double getAmount()The amount transferred in this transaction.- 返回:
- amount transferred in this transaction
-
getWhen
The day the transaction took place.- 返回:
- day the transaction took place
-