Package org.exoplatform.caldav.ics
Record Class IcsJudgement
java.lang.Object
java.lang.Record
org.exoplatform.caldav.ics.IcsJudgement
- Record Components:
verdict- what was concludeddetail- what diverged, or why nothing could be concluded; null when the two objects state the same thingdivergences- what this server was seen doing to the copy, one entry per property — including the ones its administrator has already excused, so a ticked quirk goes on being shown with its count instead of vanishing from the list it was ticked in. Never null; empty when nothing could be concluded
public record IcsJudgement(IcsJudgement.Verdict verdict, String detail, List<org.exoplatform.caldav.model.IcsDivergence> divergences)
extends Record
What comparing a copy against the object eXo would write concluded.
Its own type rather than a nested one, since EXO-89771 gave it a third
component: it is the comparison's whole public surface, three readers depend
on it — the mirror pass, the recording of what a server does, and the tests —
and IcsEquivalence is at the size where a separable concept belongs
beside it rather than inside it.
Three answers, not two. DIFFERENT and EQUIVALENT are
the judgements; UNJUDGEABLE is what comes back when eXo's own render
cannot be read as a calendar object holding one event. That is a defect on
eXo's side, never evidence about the user's calendar, and the caller leaves
the copy alone rather than overwriting it on the strength of one.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumWhat a comparison can conclude. -
Constructor Summary
ConstructorsConstructorDescriptionIcsJudgement(IcsJudgement.Verdict conclusion, String explanation) A judgement that says nothing about the server's own behaviour — the two objects agree, or eXo could not read one of them.IcsJudgement(IcsJudgement.Verdict verdict, String detail, List<org.exoplatform.caldav.model.IcsDivergence> divergences) Creates an instance of aIcsJudgementrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondetail()Returns the value of thedetailrecord component.booleanList<org.exoplatform.caldav.model.IcsDivergence> Returns the value of thedivergencesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.verdict()Returns the value of theverdictrecord component.
-
Constructor Details
-
IcsJudgement
A judgement that says nothing about the server's own behaviour — the two objects agree, or eXo could not read one of them.- Parameters:
conclusion- what was concludedexplanation- what diverged, or why nothing could be concluded
-
IcsJudgement
public IcsJudgement(IcsJudgement.Verdict verdict, String detail, List<org.exoplatform.caldav.model.IcsDivergence> divergences) Creates an instance of aIcsJudgementrecord class.- Parameters:
verdict- the value for theverdictrecord componentdetail- the value for thedetailrecord componentdivergences- the value for thedivergencesrecord component
-
-
Method Details
-
different
public boolean different()- Returns:
- whether the server's copy is not what eXo would write
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
verdict
Returns the value of theverdictrecord component.- Returns:
- the value of the
verdictrecord component
-
detail
Returns the value of thedetailrecord component.- Returns:
- the value of the
detailrecord component
-
divergences
Returns the value of thedivergencesrecord component.- Returns:
- the value of the
divergencesrecord component
-