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 aSonorityClass
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.pattern()
Returns the value of thepattern
record component.int
Returns the value of thesonorityValue
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
SonorityClass
Creates an instance of aSonorityClass
record class.- Parameters:
sonorityValue
- the value for thesonorityValue
record componentpattern
- the value for thepattern
record 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 thecompare
method from their corresponding wrapper classes. -
sonorityValue
public int sonorityValue()Returns the value of thesonorityValue
record component.- Returns:
- the value of the
sonorityValue
record component
-
pattern
Returns the value of thepattern
record component.- Returns:
- the value of the
pattern
record component
-