Record Class ServerQuirkSummary.Observation

java.lang.Object
java.lang.Record
org.exoplatform.caldav.utils.ServerQuirkSummary.Observation
Record Components:
direction - which way the divergence pointed
property - the property name it was seen on, upper-cased so two spellings of one property cannot become two entries
Enclosing class:
ServerQuirkSummary

public static record ServerQuirkSummary.Observation(org.exoplatform.caldav.model.ServerQuirkDirection direction, String property) extends Record
One thing a server was seen doing, as the summary keys it.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Observation(org.exoplatform.caldav.model.ServerQuirkDirection direction, String property)
    Creates an instance of a Observation record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.exoplatform.caldav.model.ServerQuirkDirection
    Returns the value of the direction record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    of(org.exoplatform.caldav.model.ServerQuirkDirection direction, String property)
    Builds an observation with its property name in the one spelling the summary stores.
    Returns the value of the property record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Observation

      public Observation(org.exoplatform.caldav.model.ServerQuirkDirection direction, String property)
      Creates an instance of a Observation record class.
      Parameters:
      direction - the value for the direction record component
      property - the value for the property record component
  • Method Details

    • of

      public static ServerQuirkSummary.Observation of(org.exoplatform.caldav.model.ServerQuirkDirection direction, String property)
      Builds an observation with its property name in the one spelling the summary stores.
      Parameters:
      direction - which way the divergence pointed
      property - the property name, in any case
      Returns:
      the observation, or null when the property name is blank
    • 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 Objects::equals(Object,Object).
      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.
    • direction

      public org.exoplatform.caldav.model.ServerQuirkDirection direction()
      Returns the value of the direction record component.
      Returns:
      the value of the direction record component
    • property

      public String property()
      Returns the value of the property record component.
      Returns:
      the value of the property record component