Package org.exoplatform.agenda.util
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
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
refreshInterval
Returns the value of therefreshIntervalrecord component.- Returns:
- the value of the
refreshIntervalrecord component
-
events
Returns the value of theeventsrecord component.- Returns:
- the value of the
eventsrecord component
-
truncated
public boolean truncated()Returns the value of thetruncatedrecord component.- Returns:
- the value of the
truncatedrecord component
-