Record Class MirrorVerification

java.lang.Object
java.lang.Record
org.exoplatform.caldav.model.MirrorVerification
Record Components:
checked - how many copies were compared against the server
missing - how many the server no longer holds
altered - how many the server holds in a form eXo did not write
adopted - 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 again
abandoned - 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 Details

    • MirrorVerification

      public MirrorVerification(int checked, int missing, int altered, int adopted, int repaired, int abandoned)
      Creates an instance of a MirrorVerification record class.
      Parameters:
      checked - the value for the checked record component
      missing - the value for the missing record component
      altered - the value for the altered record component
      adopted - the value for the adopted record component
      repaired - the value for the repaired record component
      abandoned - the value for the abandoned record component
  • Method Details

    • nothing

      public static MirrorVerification 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

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • checked

      public int checked()
      Returns the value of the checked record component.
      Returns:
      the value of the checked record component
    • missing

      public int missing()
      Returns the value of the missing record component.
      Returns:
      the value of the missing record component
    • altered

      public int altered()
      Returns the value of the altered record component.
      Returns:
      the value of the altered record component
    • adopted

      public int adopted()
      Returns the value of the adopted record component.
      Returns:
      the value of the adopted record component
    • repaired

      public int repaired()
      Returns the value of the repaired record component.
      Returns:
      the value of the repaired record component
    • abandoned

      public int abandoned()
      Returns the value of the abandoned record component.
      Returns:
      the value of the abandoned record component