Record Class MetricScanner.MetricalAnalysis
java.lang.Object
java.lang.Record
org.episteme.social.linguistics.MetricScanner.MetricalAnalysis
- Enclosing class:
MetricScanner
-
Constructor Summary
ConstructorsConstructorDescriptionMetricalAnalysis(String line, String stressPattern, MetricScanner.MetricalFoot dominantFoot, int footCount, String meterName, List<String> scanningNotes) Creates an instance of aMetricalAnalysisrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedominantFootrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of thefootCountrecord component.final inthashCode()Returns a hash code value for this object.line()Returns the value of thelinerecord component.Returns the value of themeterNamerecord component.Returns the value of thescanningNotesrecord component.Returns the value of thestressPatternrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MetricalAnalysis
public MetricalAnalysis(String line, String stressPattern, MetricScanner.MetricalFoot dominantFoot, int footCount, String meterName, List<String> scanningNotes) Creates an instance of aMetricalAnalysisrecord class.- Parameters:
line- the value for thelinerecord componentstressPattern- the value for thestressPatternrecord componentdominantFoot- the value for thedominantFootrecord componentfootCount- the value for thefootCountrecord componentmeterName- the value for themeterNamerecord componentscanningNotes- the value for thescanningNotesrecord 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. -
line
Returns the value of thelinerecord component.- Returns:
- the value of the
linerecord component
-
stressPattern
Returns the value of thestressPatternrecord component.- Returns:
- the value of the
stressPatternrecord component
-
dominantFoot
Returns the value of thedominantFootrecord component.- Returns:
- the value of the
dominantFootrecord component
-
footCount
public int footCount()Returns the value of thefootCountrecord component.- Returns:
- the value of the
footCountrecord component
-
meterName
Returns the value of themeterNamerecord component.- Returns:
- the value of the
meterNamerecord component
-
scanningNotes
-