public static List<Date> holidayList(final Calendar c,final Date from,final Date to,final boolean includeWeekEnds){
  QL.require(to.gt(from),"'from' date (" + from.toString() + ") must be earlier than 'to' date ("+ to.toString()+ ")");
  final List<Date> result=new ArrayList<Date>();
  for (Date d=from.clone(); d.le(to); d=d.add(1)) {
    if (c.isHoliday(d) && (includeWeekEnds || !c.isWeekend(d.weekday()))) {
      result.add(d);
    }
  }
  return result;
}

public static List < Date > holidayList ( final Calendar c , final Date from , final Date to , final boolean includeWeekEnds ) { QL . require ( to . gt ( from ) , "'from' date (" + from . toString ( ) + ") must be earlier than 'to' date (" + to . toString ( ) + ")" ) ; final List < Date > result = new ArrayList < Date > ( ) ; for ( Date d = from . clone ( ) ; d . le ( to ) ; d = d . add ( 1 ) ) { if ( c . isHoliday ( d ) && ( includeWeekEnds || ! c . isWeekend ( d . weekday ( ) ) ) ) { result . add ( d ) ; } } return result ; }
returns the holidays between two dates
