Record Class AssertionCatalog.Entry
java.lang.Object
java.lang.Record
com.shaft.capture.generate.AssertionCatalog.Entry
- Record Components:
kind- matching SHAFT verification kindlabel- reviewer-facing label shown in the recorder overlayneedsValue- whether the choice prompts for an expected valueneedsAttribute- whether the choice prompts for an attribute name
- Enclosing class:
AssertionCatalog
public static record AssertionCatalog.Entry(CaptureEvent.VerificationKind kind, String label, boolean needsValue, boolean needsAttribute)
extends Record
One deterministic assertion catalog choice.
-
Constructor Summary
ConstructorsConstructorDescriptionEntry(CaptureEvent.VerificationKind kind, String label, boolean needsValue, boolean needsAttribute) Creates an instance of aEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.label()Returns the value of thelabelrecord component.booleanReturns the value of theneedsAttributerecord component.booleanReturns the value of theneedsValuerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Entry
public Entry(CaptureEvent.VerificationKind kind, String label, boolean needsValue, boolean needsAttribute) Creates an instance of aEntryrecord class.- Parameters:
kind- the value for thekindrecord componentlabel- the value for thelabelrecord componentneedsValue- the value for theneedsValuerecord componentneedsAttribute- the value for theneedsAttributerecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
kind
-
label
-
needsValue
public boolean needsValue()Returns the value of theneedsValuerecord component.- Returns:
- the value of the
needsValuerecord component
-
needsAttribute
public boolean needsAttribute()Returns the value of theneedsAttributerecord component.- Returns:
- the value of the
needsAttributerecord component
-