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 aTranscriptElementRange
record class. -
Method Summary
Modifier and TypeMethodDescriptionend()
final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.range()
Returns the value of therange
record component.start()
tier()
Returns the value of thetier
record component.final String
toString()
Returns a string representation of this record class.int
Returns the value of thetranscriptElementIndex
record component.
-
Constructor Details
-
TranscriptElementRange
Creates an instance of aTranscriptElementRange
record class.- Parameters:
transcriptElementIndex
- the value for thetranscriptElementIndex
record componenttier
- the value for thetier
record componentrange
- the value for therange
record 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 thecompare
method from their corresponding wrapper classes. -
transcriptElementIndex
public int transcriptElementIndex()Returns the value of thetranscriptElementIndex
record component.- Returns:
- the value of the
transcriptElementIndex
record component
-
tier
-
range
-