Record Class IndicatorNotice.Key
java.lang.Object
java.lang.Record
com.wualabs.qtsurfer.engine.indicators.core.IndicatorNotice.Key
- Record Components:
code- the notice codeindicatorName- the indicator the notice is about
- Enclosing class:
IndicatorNotice
What makes a notice unique: the condition, and the indicator it concerns. Two notices sharing a
key are the same diagnostic reported twice — the same wiring problem seen on a later tick — so a
collector keys on this to report it once.
A record rather than a formatted string on purpose. A concatenated key would need a
separator guaranteed absent from both halves, and the engine cannot promise that:
InstrumentMapRTIndicator.add accepts any indicator name a strategy author passes, with no
character validation anywhere. Whatever separator were chosen, a name containing it would make
two distinct pairs collapse into one key and silence a real notice.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncode()Returns the value of thecoderecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theindicatorNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Key
Creates an instance of aKeyrecord class.- Parameters:
code- the value for thecoderecord componentindicatorName- the value for theindicatorNamerecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
code
-
indicatorName
Returns the value of theindicatorNamerecord component.- Returns:
- the value of the
indicatorNamerecord component
-