Record Class TranscriptElementRange
java.lang.Object
java.lang.Record
ca.phon.session.position.TranscriptElementRange
- Record Components:
transcriptElementIndex-tier-range-
public record TranscriptElementRange(int transcriptElementIndex, String tier, Range range)
extends Record
A range within a transcript element. The range is defined by a tier and a range of characters within that tier.
If the transcript element is a record, tier will be the name of the specific tier. If the transcript element is a comment, the
tier name will be the type of comment, if the transcript element is a gem, tier will be the type of gem.
-
Constructor Summary
ConstructorsConstructorDescriptionTranscriptElementRange(int transcriptElementIndex, String tier, Range range) Creates an instance of aTranscriptElementRangerecord class. -
Method Summary
Modifier and TypeMethodDescriptionend()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.range()Returns the value of therangerecord component.start()tier()Returns the value of thetierrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetranscriptElementIndexrecord component.
-
Constructor Details
-
TranscriptElementRange
Creates an instance of aTranscriptElementRangerecord class.- Parameters:
transcriptElementIndex- the value for thetranscriptElementIndexrecord componenttier- the value for thetierrecord componentrange- the value for therangerecord component
-
-
Method Details
-
start
-
end
-
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. -
transcriptElementIndex
public int transcriptElementIndex()Returns the value of thetranscriptElementIndexrecord component.- Returns:
- the value of the
transcriptElementIndexrecord component
-
tier
-
range
-