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 it
displayName - the collection's display name, or null — data, never identity: nothing may key on it
ctag - the CalendarServer ctag, or null when the server has none
syncToken - the RFC 6578 sync token, or null when unsupported
color - the Apple calendar-color, or null
writable - 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 Details

    • CalendarCollection

      public CalendarCollection(String href, String displayName, String ctag, String syncToken, String color, boolean writable)
      Creates an instance of a CalendarCollection record class.
      Parameters:
      href - the value for the href record component
      displayName - the value for the displayName record component
      ctag - the value for the ctag record component
      syncToken - the value for the syncToken record component
      color - the value for the color record component
      writable - the value for the writable record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • href

      public String href()
      Returns the value of the href record component.
      Returns:
      the value of the href record component
    • displayName

      public String displayName()
      Returns the value of the displayName record component.
      Returns:
      the value of the displayName record component
    • ctag

      public String ctag()
      Returns the value of the ctag record component.
      Returns:
      the value of the ctag record component
    • syncToken

      public String syncToken()
      Returns the value of the syncToken record component.
      Returns:
      the value of the syncToken record component
    • color

      public String color()
      Returns the value of the color record component.
      Returns:
      the value of the color record component
    • writable

      public boolean writable()
      Returns the value of the writable record component.
      Returns:
      the value of the writable record component