Record Class MetricScanner.RhymeAnalysis
java.lang.Object
java.lang.Record
org.episteme.social.linguistics.MetricScanner.RhymeAnalysis
- Enclosing class:
MetricScanner
-
Constructor Summary
Constructors -
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.lines()Returns the value of thelinesrecord component.Returns the value of therhymeGroupsrecord component.Returns the value of therhymeSchemerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RhymeAnalysis
public RhymeAnalysis(List<String> lines, String rhymeScheme, Map<Character, List<String>> rhymeGroups) Creates an instance of aRhymeAnalysisrecord class.- Parameters:
lines- the value for thelinesrecord componentrhymeScheme- the value for therhymeSchemerecord componentrhymeGroups- the value for therhymeGroupsrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
lines
-
rhymeScheme
Returns the value of therhymeSchemerecord component.- Returns:
- the value of the
rhymeSchemerecord component
-
rhymeGroups
-