Package org.exoplatform.caldav.model
Record Class RemoteCalendarsRead
java.lang.Object
java.lang.Record
org.exoplatform.caldav.model.RemoteCalendarsRead
- Record Components:
calendars- the account's calendars, each with a usable colour; empty when the account could not be asked at allfailed- true when the account could not be listed, so the empty list above means "not read" rather than "no calendars"
What listing the connected account's calendars actually produced, failures
included.
The same distinction RemoteEventsRead carries for events, at the one
grain a listing has: either the account was asked and answered — with as
many calendars as it holds, possibly none — or it could not be asked, and
the empty list below says nothing about what the account holds.
-
Constructor Summary
ConstructorsConstructorDescriptionRemoteCalendarsRead(List<RemoteCalendar> calendars, boolean failed) Creates an instance of aRemoteCalendarsReadrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecalendarsrecord component.static RemoteCalendarsReadempty()The answer of an account that has no calendar to offer and no failure to report — most often one that is simply not connected.final booleanIndicates whether some other object is "equal to" this one.booleanfailed()Returns the value of thefailedrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
empty
The answer of an account that has no calendar to offer and no failure to report — most often one that is simply not connected.- Returns:
- an empty, unfailed listing
-
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 '=='. -
calendars
Returns the value of thecalendarsrecord component.- Returns:
- the value of the
calendarsrecord component
-
failed
public boolean failed()Returns the value of thefailedrecord component.- Returns:
- the value of the
failedrecord component
-