Package org.exoplatform.caldav.ics
Record Class IcsMerger.AnswerRewrite
java.lang.Object
java.lang.Record
org.exoplatform.caldav.ics.IcsMerger.AnswerRewrite
- Record Components:
attendeeNamed- whether any address offered matched a line on the objectdocument- the object to write back, or null when nothing moved
- Enclosing class:
IcsMerger
What an attempted answer rewrite found.
The two reasons nothing is written are told apart on purpose, because they are not the same event at all. An object that already carries the answer is the ordinary idempotent case. An object that does not name the attendee while eXo holds a mapping saying it is that user's copy is an inconsistency worth saying out loud — it is exactly the state that made this propagation do nothing, silently, on a live rig.
-
Constructor Summary
ConstructorsConstructorDescriptionAnswerRewrite(boolean attendeeNamed, String document) Creates an instance of aAnswerRewriterecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theattendeeNamedrecord component.document()Returns the value of thedocumentrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanWhether there is something to write.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AnswerRewrite
Creates an instance of aAnswerRewriterecord class.- Parameters:
attendeeNamed- the value for theattendeeNamedrecord componentdocument- the value for thedocumentrecord component
-
-
Method Details
-
hasChange
public boolean hasChange()Whether there is something to write.- Returns:
- true when the answer moved and the document must be sent
-
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 '=='. -
attendeeNamed
public boolean attendeeNamed()Returns the value of theattendeeNamedrecord component.- Returns:
- the value of the
attendeeNamedrecord component
-
document
Returns the value of thedocumentrecord component.- Returns:
- the value of the
documentrecord component
-