Java time code to ignore holiday ie saturday / sunday and return only the business day.The below example will explain in deatis.

This Code returns the calculated business day from the reference date i.e the day is not a saturday / sunday offset buy the value specified in the parameter.
If the offset = 0, it returns the next business day if the reference date is a holiday or else the same date.

If the offset is less than 0, it subtracts the offset # of business days from the reference date(the reference date will be shifted to the previous business date if its a holiday before the subtraction starts) and returns the calculated date .

If the offset is greater than 0, it adds the offset # of business days from the reference date(the reference date will be shifted to the next business date if its a holiday before the addition starts) and returns the calculated date.