Record Class HiddenCalendar
- Record Components:
id- the binding to liftname- what the server calls the collection today- true for a calendar somebody shared with the user, false for one of their own they deleted hereownerDisplayName- how to name whoever shared it, or null
Carries the binding's id rather than the collection's path, deliberately: a path travelling through a browser is something a caller could change, and what it would then name is another collection on the same account. An id is looked up and checked against whose it is before anything happens.
Two kinds since EXO-90239, told apart by shared. A calendar the
user deleted here while keeping it on their account comes back at
the next synchronisation, materialised afresh. A calendar shared
with them that they chose not to see comes back under the remote calendars
the moment its record is dropped, and is named with whoever shared it when
that can be told — the same owner the calendar list shows, resolved the
same way; null when nobody can be named, and always null for a deleted
calendar of the user's own.
-
Constructor Summary
ConstructorsConstructorDescriptionHiddenCalendar(long id, String name) A calendar of the user's own, deleted here and kept on their account — the only kind there was before shares could be hidden, kept so that a caller building one by hand never describes a share by accident.HiddenCalendar(long id, String name, boolean shared, String ownerDisplayName) Creates an instance of aHiddenCalendarrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longid()Returns the value of theidrecord component.name()Returns the value of thenamerecord component.Returns the value of theownerDisplayNamerecord component.booleanshared()Returns the value of thesharedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HiddenCalendar
A calendar of the user's own, deleted here and kept on their account — the only kind there was before shares could be hidden, kept so that a caller building one by hand never describes a share by accident.- Parameters:
id- the binding to liftname- what the server calls the collection today
-
HiddenCalendar
Creates an instance of aHiddenCalendarrecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componentshared- the value for thesharedrecord componentownerDisplayName- the value for theownerDisplayNamerecord 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 '=='. -
id
public long id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
ownerDisplayName
Returns the value of theownerDisplayNamerecord component.- Returns:
- the value of the
ownerDisplayNamerecord component
-