Class FixedHoliday

java.lang.Object
fr.marcwrobel.jbanking.calendar.FixedHoliday
All Implemented Interfaces:
Holiday

public final class FixedHoliday extends Object implements Holiday
A Holiday occurring at given dates.

This class is useful for modeling exceptional holidays like the golden jubilee in the United Kingdom.

Since:
2.1.0
  • Constructor Details

  • Method Details

    • check

      public boolean check(LocalDate date)
      Description copied from interface: Holiday
      Check whether the given date is an occurrence of this holiday.
      Specified by:
      check in interface Holiday
      Parameters:
      date - the date to check.
      Returns:
      true if the given date is an occurrence of this holiday, false otherwise.
      See Also:
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object