Package org.exoplatform.caldav.utils
Record Class ServerQuirkSummary.Observation
java.lang.Object
java.lang.Record
org.exoplatform.caldav.utils.ServerQuirkSummary.Observation
- Record Components:
direction- which way the divergence pointedproperty- 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
ConstructorsConstructorDescriptionObservation(org.exoplatform.caldav.model.ServerQuirkDirection direction, String property) Creates an instance of aObservationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionorg.exoplatform.caldav.model.ServerQuirkDirectionReturns the value of thedirectionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Builds an observation with its property name in the one spelling the summary stores.property()Returns the value of thepropertyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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 pointedproperty- the property name, in any case- Returns:
- the observation, or null when the property name is blank
-
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). -
direction
public org.exoplatform.caldav.model.ServerQuirkDirection direction()Returns the value of thedirectionrecord component.- Returns:
- the value of the
directionrecord component
-
property
Returns the value of thepropertyrecord component.- Returns:
- the value of the
propertyrecord component
-