public final class FloatingRateLoanOrder extends LoanOrder implements Comparable<FloatingRateLoanOrder>
A floating rate loan order is a loan order whose rate is determined by the market. This type of loan order can be preferable for creditors when loans have a callable provision (i.e. the debtor can choose to pay off the loan early and acquire another loan at a more favorable rate).
Constructor and Description |
---|
FloatingRateLoanOrder(Order.OrderType type,
String currency,
BigDecimal tradableAmount,
int dayPeriod,
String id,
Date timestamp,
BigDecimal rate) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(FloatingRateLoanOrder order) |
BigDecimal |
getRate() |
void |
setRate(BigDecimal rate) |
equals, getCurrency, getDayPeriod, getId, getTimestamp, getTradableAmount, getType, hashCode, toString
public FloatingRateLoanOrder(Order.OrderType type, String currency, BigDecimal tradableAmount, int dayPeriod, String id, Date timestamp, BigDecimal rate)
type
- Either BID (debtor) or ASK (creditor)currency
- The loan currency codetradableAmount
- Units of currencydayPeriod
- Loan duration in daysid
- An id (usually provided by the exchange)timestamp
- The absolute time for this orderpublic BigDecimal getRate()
public void setRate(BigDecimal rate)
public int compareTo(FloatingRateLoanOrder order)
compareTo
in interface Comparable<FloatingRateLoanOrder>
Copyright © 2012–2018 Xeiam, LLC. All rights reserved.