Class CalendarItemYear

java.lang.Object
io.goobi.viewer.model.calendar.AbstractCalendarItem
io.goobi.viewer.model.calendar.CalendarItemYear
All Implemented Interfaces:
ICalendarItem, Serializable, Comparable<ICalendarItem>

public class CalendarItemYear extends AbstractCalendarItem implements Serializable
Calendar browsing item representing a single year.
See Also:
  • Constructor Details

    • CalendarItemYear

      public CalendarItemYear(String name, int value, int hits)
      Creates a new CalendarItemYear instance.
      Parameters:
      name - display label for the year
      value - numeric year value
      hits - number of records found for this year
  • Method Details

    • getMonthsOfYear

      public List<CalendarItemMonth> getMonthsOfYear()
      Getter for the field monthsOfYear.
      Returns:
      a list of monthly calendar items for this year
    • setMonthsOfYear

      public void setMonthsOfYear(List<CalendarItemMonth> monthsOfYear)
      Setter for the field monthsOfYear.
      Parameters:
      monthsOfYear - list of monthly calendar items for this year
    • toString

      public String toString()
      Overrides:
      toString in class Object