Record Class FindExprMatch
java.lang.Object
java.lang.Record
ca.phon.app.session.editor.search.FindExprMatch
- Record Components:
range
- the range of the result within the transcript, if null there is no matchmatcher
- the Java regex matcher for the result (may be null)phonexMatcher
- the Phonex matcher for the result (may be null)
public record FindExprMatch(Range 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. It also includes
the optional Java regex matcher and Phonex matcher for the result.
-
Constructor Summary
ConstructorsConstructorDescriptionFindExprMatch
(Range range, Matcher matcher, PhonexMatcher phonexMatcher) Creates an instance of aFindExprMatch
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic FindExprMatch
empty()
final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
hasMatch()
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
-
FindExprMatch
Creates an instance of aFindExprMatch
record class.- Parameters:
range
- the value for therange
record componentmatcher
- the value for thematcher
record componentphonexMatcher
- the value for thephonexMatcher
record component
-
-
Method Details
-
empty
-
hasMatch
public boolean hasMatch() -
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)
. -
range
-
matcher
-
phonexMatcher
Returns the value of thephonexMatcher
record component.- Returns:
- the value of the
phonexMatcher
record component
-