Package org.exoplatform.agenda.util
Record Class CalendarFeedParser.ImportedEvent
java.lang.Object
java.lang.Record
org.exoplatform.agenda.util.CalendarFeedParser.ImportedEvent
- Record Components:
key- UID and original instant, stable across refreshessummary- the title, plain text, may be nulldescription- the description, plain text, may be nulllocation- the location, plain text, may be nullallDay- whether the occurrence spans whole daysstart- the start; for an all-day occurrence, its first day at UTC midnightend- the end; for an all-day occurrence, its last day at UTC midnighttimeZone- the time zone the event is expressed inavailability- FREE for a transparent event, BUSY otherwise
- Enclosing class:
CalendarFeedParser
public static record CalendarFeedParser.ImportedEvent(String key, String summary, String description, String location, boolean allDay, ZonedDateTime start, ZonedDateTime end, ZoneId timeZone, org.exoplatform.agenda.constant.EventAvailability availability)
extends Record
One occurrence, ready to be written as an agenda event.
-
Constructor Summary
ConstructorsConstructorDescriptionImportedEvent(String key, String summary, String description, String location, boolean allDay, ZonedDateTime start, ZonedDateTime end, ZoneId timeZone, org.exoplatform.agenda.constant.EventAvailability availability) Creates an instance of aImportedEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanallDay()Returns the value of theallDayrecord component.org.exoplatform.agenda.constant.EventAvailabilityReturns the value of theavailabilityrecord component.A digest of everything imported, so an unchanged occurrence is not rewritten.Returns the value of thedescriptionrecord component.end()Returns the value of theendrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.location()Returns the value of thelocationrecord component.start()Returns the value of thestartrecord component.summary()Returns the value of thesummaryrecord component.timeZone()Returns the value of thetimeZonerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ImportedEvent
public ImportedEvent(String key, String summary, String description, String location, boolean allDay, ZonedDateTime start, ZonedDateTime end, ZoneId timeZone, org.exoplatform.agenda.constant.EventAvailability availability) Creates an instance of aImportedEventrecord class.- Parameters:
key- the value for thekeyrecord componentsummary- the value for thesummaryrecord componentdescription- the value for thedescriptionrecord componentlocation- the value for thelocationrecord componentallDay- the value for theallDayrecord componentstart- the value for thestartrecord componentend- the value for theendrecord componenttimeZone- the value for thetimeZonerecord componentavailability- the value for theavailabilityrecord component
-
-
Method Details
-
contentHash
A digest of everything imported, so an unchanged occurrence is not rewritten.- Returns:
- lowercase hexadecimal SHA-256
-
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 '=='. -
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
summary
Returns the value of thesummaryrecord component.- Returns:
- the value of the
summaryrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
location
Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-
allDay
public boolean allDay()Returns the value of theallDayrecord component.- Returns:
- the value of the
allDayrecord component
-
start
Returns the value of thestartrecord component.- Returns:
- the value of the
startrecord component
-
end
Returns the value of theendrecord component.- Returns:
- the value of the
endrecord component
-
timeZone
Returns the value of thetimeZonerecord component.- Returns:
- the value of the
timeZonerecord component
-
availability
public org.exoplatform.agenda.constant.EventAvailability availability()Returns the value of theavailabilityrecord component.- Returns:
- the value of the
availabilityrecord component
-