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 aFindResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.expr()Returns the value of theexprrecord component.final inthashCode()Returns a hash code value for this object.booleanbooleanbooleanmatcher()Returns the value of thematcherrecord component.Returns the value of thephonexMatcherrecord component.range()Returns the value of therangerecord component.final StringtoString()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 aFindResultrecord class.- Parameters:
expr- the value for theexprrecord componentrange- the value for therangerecord componentmatcher- the value for thematcherrecord componentphonexMatcher- the value for thephonexMatcherrecord 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 thephonexMatcherrecord component.- Returns:
- the value of the
phonexMatcherrecord component
-