Record Class FindResult
java.lang.Object
java.lang.Record
ca.phon.app.session.editor.search.FindResult
- Record Components:
expr
- the expression used to find the resultrange
- the range of the result within the transcriptmatcher
- the Java regex matcher for the result (may be null)phonexMatcher
- the Phonex matcher for the result (may be null)
public record FindResult(FindExpr expr, TranscriptElementRange range, Matcher matcher, PhonexMatcher phonexMatcher)
extends Record
Result of a find operation. This contains the expression used to find the
result and the range of the result within the transcript.
-
Constructor Summary
ConstructorsConstructorDescriptionFindResult
(FindExpr expr, TranscriptElementRange range, Matcher matcher, PhonexMatcher phonexMatcher) Creates an instance of aFindResult
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.expr()
Returns the value of theexpr
record component.final int
hashCode()
Returns a hash code value for this object.boolean
boolean
boolean
matcher()
Returns the value of thematcher
record component.Returns the value of thephonexMatcher
record component.range()
Returns the value of therange
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
FindResult
public FindResult(FindExpr expr, TranscriptElementRange range, Matcher matcher, PhonexMatcher phonexMatcher) Creates an instance of aFindResult
record class.- Parameters:
expr
- the value for theexpr
record componentrange
- the value for therange
record componentmatcher
- the value for thematcher
record componentphonexMatcher
- the value for thephonexMatcher
record component
-
-
Method Details
-
isPlainMatch
public boolean isPlainMatch() -
isRegexMatch
public boolean isRegexMatch() -
isPhonexMatch
public boolean isPhonexMatch() -
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)
. -
expr
-
range
-
matcher
-
phonexMatcher
Returns the value of thephonexMatcher
record component.- Returns:
- the value of the
phonexMatcher
record component
-