Package org.exoplatform.caldav.client
Record Class CalendarObject
java.lang.Object
java.lang.Record
org.exoplatform.caldav.client.CalendarObject
- Record Components:
href- the object's server-absolute raw pathetag- the version the server named, exactly as sent — quotes and all, because it only works as a precondition verbatim; null when the server sent nonecalendarData- the iCalendar text, or null when the answer carried only the version (an ETag listing, a sync-collection change)
One calendar object (an .ics resource) as the server answered it.
-
Constructor Summary
ConstructorsConstructorDescriptionCalendarObject(String href, String etag, String calendarData) Creates an instance of aCalendarObjectrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecalendarDatarecord component.final booleanIndicates whether some other object is "equal to" this one.etag()Returns the value of theetagrecord component.final inthashCode()Returns a hash code value for this object.href()Returns the value of thehrefrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CalendarObject
Creates an instance of aCalendarObjectrecord class.- Parameters:
href- the value for thehrefrecord componentetag- the value for theetagrecord componentcalendarData- the value for thecalendarDatarecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
href
Returns the value of thehrefrecord component.- Returns:
- the value of the
hrefrecord component
-
etag
Returns the value of theetagrecord component.- Returns:
- the value of the
etagrecord component
-
calendarData
Returns the value of thecalendarDatarecord component.- Returns:
- the value of the
calendarDatarecord component
-