Package org.exoplatform.caldav.client
Record Class CalendarCollection
java.lang.Object
java.lang.Record
org.exoplatform.caldav.client.CalendarCollection
- Record Components:
href- the collection's server-absolute raw path, trailing slash as the server sent itdisplayName- the collection's display name, or null — data, never identity: nothing may key on itctag- the CalendarServer ctag, or null when the server has nonesyncToken- the RFC 6578 sync token, or null when unsupportedcolor- the Apple calendar-color, or nullwritable- whether the current user's privilege set carries write — false as well when the server answered no privilege set at all
public record CalendarCollection(String href, String displayName, String ctag, String syncToken, String color, boolean writable)
extends Record
One calendar collection as a PROPFIND listed it: everything the sync
engine binds a pair on, and nothing it does not need. Hrefs are answered
as server-absolute raw paths — exactly the shape they travel back out in,
so a round trip never re-encodes them.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncolor()Returns the value of thecolorrecord component.ctag()Returns the value of thectagrecord component.Returns the value of thedisplayNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.href()Returns the value of thehrefrecord component.Returns the value of thesyncTokenrecord component.final StringtoString()Returns a string representation of this record class.booleanwritable()Returns the value of thewritablerecord component.
-
Constructor Details
-
CalendarCollection
public CalendarCollection(String href, String displayName, String ctag, String syncToken, String color, boolean writable) Creates an instance of aCalendarCollectionrecord class.- Parameters:
href- the value for thehrefrecord componentdisplayName- the value for thedisplayNamerecord componentctag- the value for thectagrecord componentsyncToken- the value for thesyncTokenrecord componentcolor- the value for thecolorrecord componentwritable- the value for thewritablerecord 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 '=='. -
href
Returns the value of thehrefrecord component.- Returns:
- the value of the
hrefrecord component
-
displayName
Returns the value of thedisplayNamerecord component.- Returns:
- the value of the
displayNamerecord component
-
ctag
Returns the value of thectagrecord component.- Returns:
- the value of the
ctagrecord component
-
syncToken
Returns the value of thesyncTokenrecord component.- Returns:
- the value of the
syncTokenrecord component
-
color
Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-
writable
public boolean writable()Returns the value of thewritablerecord component.- Returns:
- the value of the
writablerecord component
-