Package org.exoplatform.caldav.model
Record Class MirrorVerification
java.lang.Object
java.lang.Record
org.exoplatform.caldav.model.MirrorVerification
- Record Components:
checked- how many copies were compared against the servermissing- how many the server no longer holdsaltered- how many the server holds in a form eXo did not writeadopted- how many carried an answer the account's owner gave from their own calendar, now recorded in agenda (EXO-89681)repaired- how many were written againabandoned- how many were left alone because repairing them has stopped working — the pass gives up rather than fighting the same object for ever
public record MirrorVerification(int checked, int missing, int altered, int adopted, int repaired, int abandoned)
extends Record
What one pass over the copies eXo pushed found, and what it did about it.
-
Constructor Summary
ConstructorsConstructorDescriptionMirrorVerification(int checked, int missing, int altered, int adopted, int repaired, int abandoned) Creates an instance of aMirrorVerificationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theabandonedrecord component.intadopted()Returns the value of theadoptedrecord component.intaltered()Returns the value of thealteredrecord component.booleanintchecked()Returns the value of thecheckedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intmissing()Returns the value of themissingrecord component.static MirrorVerificationnothing()intrepaired()Returns the value of therepairedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MirrorVerification
public MirrorVerification(int checked, int missing, int altered, int adopted, int repaired, int abandoned) Creates an instance of aMirrorVerificationrecord class.- Parameters:
checked- the value for thecheckedrecord componentmissing- the value for themissingrecord componentaltered- the value for thealteredrecord componentadopted- the value for theadoptedrecord componentrepaired- the value for therepairedrecord componentabandoned- the value for theabandonedrecord component
-
-
Method Details
-
nothing
- Returns:
- a pass that found nothing to do, or could not run
-
changedAnything
public boolean changedAnything()- Returns:
- whether anything was written back this pass
-
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 with '=='. -
checked
public int checked()Returns the value of thecheckedrecord component.- Returns:
- the value of the
checkedrecord component
-
missing
public int missing()Returns the value of themissingrecord component.- Returns:
- the value of the
missingrecord component
-
altered
public int altered()Returns the value of thealteredrecord component.- Returns:
- the value of the
alteredrecord component
-
adopted
public int adopted()Returns the value of theadoptedrecord component.- Returns:
- the value of the
adoptedrecord component
-
repaired
public int repaired()Returns the value of therepairedrecord component.- Returns:
- the value of the
repairedrecord component
-
abandoned
public int abandoned()Returns the value of theabandonedrecord component.- Returns:
- the value of the
abandonedrecord component
-