Record Class CalendarFeedParser.ParsedCalendar
java.lang.Object
java.lang.Record
org.exoplatform.agenda.util.CalendarFeedParser.ParsedCalendar
- Record Components:
name- the calendar's own name, null when it names nonerefreshInterval- the refresh interval it advertises, null when noneevents- the occurrences kept, earliest firsttruncated- whether occurrences were left out beyond the limit
- Enclosing class:
CalendarFeedParser
public static record CalendarFeedParser.ParsedCalendar(String name, Duration refreshInterval, List<CalendarFeedParser.ImportedEvent> events, boolean truncated)
extends Record
A document read.
-
Constructor Summary
ConstructorsConstructorDescriptionParsedCalendar(String name, Duration refreshInterval, List<CalendarFeedParser.ImportedEvent> events, boolean truncated) Creates an instance of aParsedCalendarrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.events()Returns the value of theeventsrecord component.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.Returns the value of therefreshIntervalrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of thetruncatedrecord component.
-
Constructor Details
-
ParsedCalendar
public ParsedCalendar(String name, Duration refreshInterval, List<CalendarFeedParser.ImportedEvent> events, boolean truncated) Creates an instance of aParsedCalendarrecord class.- Parameters:
name- the value for thenamerecord componentrefreshInterval- the value for therefreshIntervalrecord componentevents- the value for theeventsrecord componenttruncated- the value for thetruncatedrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
name
-
refreshInterval
Returns the value of therefreshIntervalrecord component.- Returns:
- the value of the
refreshIntervalrecord component
-
events
-
truncated
-