|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractSet<E>
java.util.TreeSet<Redemption>
com.ftlabs.fisa.DiscreteCallSchedule
public class DiscreteCallSchedule
An implementation of CallSchedule for discrete calls. Calls can be added via the constructor, or using the add method. Calls are stored in call date order.
| Constructor Summary | |
|---|---|
DiscreteCallSchedule()
Create a new DiscreteCallSchedule without any calls. |
|
DiscreteCallSchedule(Redemption... redemptions)
Create a new DiscreteCallSchedule that is populated with the provided Redemptions. |
|
| Method Summary | |
|---|---|
boolean |
add(FISADate date,
double value)
Create and add a new Redemption to this schedule using the provided date and value. |
boolean |
add(Redemption redemption)
Add a call to this CallSchedule. |
Redemption |
getNextCall()
Get the next call. |
Redemption |
getNextParCall()
Get the next par call. |
Redemption |
getNextPremiumCall()
Get the next premium call. |
| Methods inherited from class java.util.TreeSet |
|---|
addAll, ceiling, clear, clone, comparator, contains, descendingIterator, descendingSet, first, floor, headSet, headSet, higher, isEmpty, iterator, last, lower, pollFirst, pollLast, remove, size, subSet, subSet, tailSet, tailSet |
| Methods inherited from class java.util.AbstractSet |
|---|
equals, hashCode, removeAll |
| Methods inherited from class java.util.AbstractCollection |
|---|
containsAll, retainAll, toArray, toArray, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.SortedSet |
|---|
comparator, first, headSet, last, subSet, tailSet |
| Methods inherited from interface java.util.Set |
|---|
addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
| Constructor Detail |
|---|
public DiscreteCallSchedule()
public DiscreteCallSchedule(Redemption... redemptions)
| Method Detail |
|---|
public boolean add(FISADate date,
double value)
date - the call date.value - the call rate.
public boolean add(Redemption redemption)
add in interface java.util.Collection<Redemption>add in interface java.util.Set<Redemption>add in class java.util.TreeSet<Redemption>redemption - a Redemption to be added to this CallSchedule.
public Redemption getNextCall()
getNextCall in interface CallSchedulepublic Redemption getNextPremiumCall()
getNextPremiumCall in interface CallSchedulepublic Redemption getNextParCall()
getNextParCall in interface CallSchedule
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||