|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cc.framework.ui.model.imp.RecurrencePatternImp.AbstractRecurrenceIterator
Day iterator
Field Summary | |
protected java.util.Calendar |
current
The current iteration element |
protected java.util.Calendar |
endDate
The patterns end date |
protected RecurrencePattern |
pattern
The recurrence pattern that specifies the occurrences |
Constructor Summary | |
RecurrencePatternImp.AbstractRecurrenceIterator(RecurrencePattern pattern)
Constructor |
Method Summary | |
java.util.Calendar |
calcEndDate()
Calculates the end date for a Recurrence pattern with a limited number of occurrences |
protected static boolean |
checkDayInstance(int dayOfMonth,
int dayOfMonthMax,
int dayOfWeek,
int dayOfWeekMask,
int instance)
Checks if the given day matches the instance |
protected java.util.Calendar |
doCalcEndDate()
Calculates the pattern end date |
protected abstract boolean |
doMatch(java.util.Calendar date)
Checks if this iterator matches a certain date |
boolean |
hasNext()
|
boolean |
match(java.util.Calendar date)
Checks if this iterator matches a certain date |
java.lang.Object |
next()
|
void |
remove()
|
protected void |
reset()
Resets the iterator to the first iteration element for this iterator |
protected void |
selectNext()
Selects the next iteration element for this iterator |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected RecurrencePattern pattern
protected java.util.Calendar current
protected java.util.Calendar endDate
Constructor Detail |
public RecurrencePatternImp.AbstractRecurrenceIterator(RecurrencePattern pattern)
pattern
- the recurrence patternMethod Detail |
protected void reset()
protected void selectNext()
public final boolean hasNext()
hasNext
in interface java.util.Iterator
Iterator.hasNext()
public final java.lang.Object next()
next
in interface java.util.Iterator
Iterator.next()
public final void remove()
remove
in interface java.util.Iterator
Iterator.remove()
public final boolean match(java.util.Calendar date)
date
- The date to check
true
if this recurrence pattern is
relevant for the given dateprotected abstract boolean doMatch(java.util.Calendar date)
date
- The date to check
true
if this recurrence pattern is
relevant for the given datepublic final java.util.Calendar calcEndDate()
protected java.util.Calendar doCalcEndDate()
null
when the pattern has no
end dateprotected static boolean checkDayInstance(int dayOfMonth, int dayOfMonthMax, int dayOfWeek, int dayOfWeekMask, int instance)
dayOfMonth
- The day of month to checkdayOfMonthMax
- The maximum days of the current monthdayOfWeek
- Day of week to checkdayOfWeekMask
- The mask with the allowed daysinstance
- the instance to check
true
if the given day matches the instance
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |