Record Class ObservedQuirk
- Record Components:
quirkId- identifier of theServerQuirkthat describes this behaviour, or null when nothing in the catalogue does — in which case the drawer describes it generically by its property name, so an incomplete catalogue never blocks an administratorproperties- the property names the sweep saw diverge and this entry covers — several when a catalogue entry names a family, exactly one when nothing describes itdirection- which way the behaviour points. The catalogue entry's own direction when one describes it, so a family whose members were seen pointing different ways still reads as the one behaviour it is; the observed direction otherwiseeffect- whether ticking it changes what eXo notices or what eXo writes into copies on this server — the drawer says which, because they are not the same kind of decision.ServerQuirkEffect.TOLERATEfor anything the catalogue does not describe: an entry nobody has written a rule for can only ever relax a comparisoncount- how many times it has been seen — a rolling tally, deliberately approximate: it answers "is this what this server always does or did it happen once", and nothing finerexcused- whether the server's stored lists cover it today, which is what the checkbox showspatterns- the property-name patterns ticking it writes into the server's list — the catalogue entry's own family when one describes it, the observed property alone otherwise
This is what the drawer offers instead of a text field of property names: the administrator ticks from evidence the sweep gathered rather than from a log line they had to find and a name they had to type correctly.
One entry per behaviour, not per property. A catalogue entry can cover
a family — X-MICROSOFT-* and X-MOZ-* are one sentence about
one server habit — and a live BlueMind account produced three of those
markers, which rendered as three identical checkboxes each saying "seen
once". They are one decision, so they are one entry, and its count is the sum
of what each property contributed. A behaviour the catalogue does not
describe is its own entry per property, because there each property genuinely
is a separate thing the server does.
-
Constructor Summary
ConstructorsConstructorDescriptionObservedQuirk(String quirkId, List<String> properties, ServerQuirkDirection direction, ServerQuirkEffect effect, long count, boolean excused, List<String> patterns) Creates an instance of aObservedQuirkrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongcount()Returns the value of thecountrecord component.Returns the value of thedirectionrecord component.effect()Returns the value of theeffectrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanexcused()Returns the value of theexcusedrecord component.final inthashCode()Returns a hash code value for this object.patterns()Returns the value of thepatternsrecord component.Returns the value of thepropertiesrecord component.property()The property name this entry is described by when nothing in the catalogue describes it — the one the drawer's generic wording renders.quirkId()Returns the value of thequirkIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ObservedQuirk
public ObservedQuirk(String quirkId, List<String> properties, ServerQuirkDirection direction, ServerQuirkEffect effect, long count, boolean excused, List<String> patterns) Creates an instance of aObservedQuirkrecord class.- Parameters:
quirkId- the value for thequirkIdrecord componentproperties- the value for thepropertiesrecord componentdirection- the value for thedirectionrecord componenteffect- the value for theeffectrecord componentcount- the value for thecountrecord componentexcused- the value for theexcusedrecord componentpatterns- the value for thepatternsrecord component
-
-
Method Details
-
property
The property name this entry is described by when nothing in the catalogue describes it — the one the drawer's generic wording renders.- Returns:
- the first property covered, or null when there is none
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
quirkId
Returns the value of thequirkIdrecord component.- Returns:
- the value of the
quirkIdrecord component
-
properties
Returns the value of thepropertiesrecord component.- Returns:
- the value of the
propertiesrecord component
-
direction
Returns the value of thedirectionrecord component.- Returns:
- the value of the
directionrecord component
-
effect
Returns the value of theeffectrecord component.- Returns:
- the value of the
effectrecord component
-
count
public long count()Returns the value of thecountrecord component.- Returns:
- the value of the
countrecord component
-
excused
public boolean excused()Returns the value of theexcusedrecord component.- Returns:
- the value of the
excusedrecord component
-
patterns
Returns the value of thepatternsrecord component.- Returns:
- the value of the
patternsrecord component
-