Record Class DialectMapper.DialectDataPoint
java.lang.Object
java.lang.Record
org.episteme.social.linguistics.DialectMapper.DialectDataPoint
- All Implemented Interfaces:
Serializable
- Enclosing class:
DialectMapper
public static record DialectMapper.DialectDataPoint(Place location, List<DialectMapper.LinguisticFeature> features, String dialectName, int respondentCount)
extends Record
implements Serializable
Data point from a linguistic survey at a specific geographical location.
- Since:
- 1.0
- Version:
- 2.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDialectDataPoint(Place location, List<DialectMapper.LinguisticFeature> features, String dialectName, int respondentCount) Creates an instance of aDialectDataPointrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedialectNamerecord component.final booleanIndicates whether some other object is "equal to" this one.features()Returns the value of thefeaturesrecord component.final inthashCode()Returns a hash code value for this object.location()Returns the value of thelocationrecord component.intReturns the value of therespondentCountrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DialectDataPoint
public DialectDataPoint(Place location, List<DialectMapper.LinguisticFeature> features, String dialectName, int respondentCount) Creates an instance of aDialectDataPointrecord class.- Parameters:
location- the value for thelocationrecord componentfeatures- the value for thefeaturesrecord componentdialectName- the value for thedialectNamerecord componentrespondentCount- the value for therespondentCountrecord 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. -
location
Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-
features
Returns the value of thefeaturesrecord component.- Returns:
- the value of the
featuresrecord component
-
dialectName
Returns the value of thedialectNamerecord component.- Returns:
- the value of the
dialectNamerecord component
-
respondentCount
public int respondentCount()Returns the value of therespondentCountrecord component.- Returns:
- the value of the
respondentCountrecord component
-