Record Class TranscriptElementLocation
java.lang.Object
java.lang.Record
ca.phon.session.position.TranscriptElementLocation
- Record Components:
transcriptElementIndex- the index of the transcript elementtier- the tier namecharPosition- the character position within the tier content
public record TranscriptElementLocation(int transcriptElementIndex, String tier, int charPosition)
extends Record
Represents a specific character location withing a transcript element. 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
ConstructorsConstructorDescriptionTranscriptElementLocation(int transcriptElementIndex, String tier, int charPosition) Creates an instance of aTranscriptElementLocationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecharPositionrecord component.intintcompareTo(TranscriptElementLocation other, List<String> tierList) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.tier()Returns the value of thetierrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetranscriptElementIndexrecord component.booleanvalid()
-
Constructor Details
-
TranscriptElementLocation
Creates an instance of aTranscriptElementLocationrecord class.- Parameters:
transcriptElementIndex- the value for thetranscriptElementIndexrecord componenttier- the value for thetierrecord componentcharPosition- the value for thecharPositionrecord component
-
-
Method Details
-
valid
public boolean valid() -
compareTo
-
compareTo
-
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
-
charPosition
public int charPosition()Returns the value of thecharPositionrecord component.- Returns:
- the value of the
charPositionrecord component
-