de.laliluna.date
Interface DayFilter


public interface DayFilter

DayFilter is an interface to be implemented by classes that can filter holidays from a time range. A day filter can be used in the method Date.workingDaysBetween(Date, DayFilter[]) when working days are calculated.


Method Summary
 java.util.List<Date> filteredDays(Date from, Date to)
          collects the days to be filtered from a time span filter should be able to work correctly if the from date is later then the start date
 int totalFilteredDays(Date from, Date to)
          calculates the total of days to be filtered from a time span filter should be able to work correctly if the from date is later then the start date
 

Method Detail

totalFilteredDays

int totalFilteredDays(Date from,
                      Date to)
calculates the total of days to be filtered from a time span filter should be able to work correctly if the from date is later then the start date

Parameters:
from - - the start date
to - - the end date
Returns:
the total of days to be filtered

filteredDays

java.util.List<Date> filteredDays(Date from,
                                  Date to)
collects the days to be filtered from a time span filter should be able to work correctly if the from date is later then the start date

Parameters:
from - - the start date
to - - the end date
Returns:
Returns a list of days being filtered from a time span


Copyright © 2009 Sebastian Hennebrueder, http://www.laliluna.de