Record Class BasicSyllabifier.SonorityClass
java.lang.Object
java.lang.Record
ca.phon.syllabifier.BasicSyllabifier.SonorityClass
- Enclosing class:
BasicSyllabifier
public static record BasicSyllabifier.SonorityClass(int sonorityValue, PhonexPattern pattern)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSonorityClass(int sonorityValue, PhonexPattern pattern) Creates an instance of aSonorityClassrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.pattern()Returns the value of thepatternrecord component.intReturns the value of thesonorityValuerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SonorityClass
Creates an instance of aSonorityClassrecord class.- Parameters:
sonorityValue- the value for thesonorityValuerecord componentpattern- the value for thepatternrecord component
-
-
Method Details
-
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. -
sonorityValue
public int sonorityValue()Returns the value of thesonorityValuerecord component.- Returns:
- the value of the
sonorityValuerecord component
-
pattern
Returns the value of thepatternrecord component.- Returns:
- the value of the
patternrecord component
-