Class Day


  • public final class Day
    extends Object
    Day Day of the week.
    • Constructor Detail

      • Day

        public Day()
    • Method Detail

      • date

        public Integer date()
        Get the date property: Date of the month.
        Returns:
        the date value.
      • withDate

        public Day withDate​(Integer date)
        Set the date property: Date of the month.
        Parameters:
        date - the date value to set.
        Returns:
        the Day object itself.
      • isLast

        public Boolean isLast()
        Get the isLast property: Whether Date is last date of month.
        Returns:
        the isLast value.
      • withIsLast

        public Day withIsLast​(Boolean isLast)
        Set the isLast property: Whether Date is last date of month.
        Parameters:
        isLast - the isLast value to set.
        Returns:
        the Day object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.