Record Class PaleographyAssistant.DatingResult
java.lang.Object
java.lang.Record
org.episteme.social.history.PaleographyAssistant.DatingResult
- Record Components:
estimatedYear- central year estimateconfidenceRangeYears- margin of error in yearslikelyScript- primary script identificationpossibleScripts- alternative script identificationsdiagnosticFeatures- list of observed features that matchedconfidence- probability score (0.0 to 1.0)
- All Implemented Interfaces:
Serializable
- Enclosing class:
PaleographyAssistant
public static record PaleographyAssistant.DatingResult(int estimatedYear, int confidenceRangeYears, PaleographyAssistant.ScriptType likelyScript, List<PaleographyAssistant.ScriptType> possibleScripts, List<String> diagnosticFeatures, double confidence)
extends Record
implements Serializable
Encapsulates the statistical results of a paleographical analysis.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDatingResult(int estimatedYear, int confidenceRangeYears, PaleographyAssistant.ScriptType likelyScript, List<PaleographyAssistant.ScriptType> possibleScripts, List<String> diagnosticFeatures, double confidence) Creates an instance of aDatingResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of theconfidencerecord component.intReturns the value of theconfidenceRangeYearsrecord component.Returns the value of thediagnosticFeaturesrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of theestimatedYearrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thelikelyScriptrecord component.Returns the value of thepossibleScriptsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DatingResult
public DatingResult(int estimatedYear, int confidenceRangeYears, PaleographyAssistant.ScriptType likelyScript, List<PaleographyAssistant.ScriptType> possibleScripts, List<String> diagnosticFeatures, double confidence) Creates an instance of aDatingResultrecord class.- Parameters:
estimatedYear- the value for theestimatedYearrecord componentconfidenceRangeYears- the value for theconfidenceRangeYearsrecord componentlikelyScript- the value for thelikelyScriptrecord componentpossibleScripts- the value for thepossibleScriptsrecord componentdiagnosticFeatures- the value for thediagnosticFeaturesrecord componentconfidence- the value for theconfidencerecord 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. -
estimatedYear
public int estimatedYear()Returns the value of theestimatedYearrecord component.- Returns:
- the value of the
estimatedYearrecord component
-
confidenceRangeYears
public int confidenceRangeYears()Returns the value of theconfidenceRangeYearsrecord component.- Returns:
- the value of the
confidenceRangeYearsrecord component
-
likelyScript
Returns the value of thelikelyScriptrecord component.- Returns:
- the value of the
likelyScriptrecord component
-
possibleScripts
Returns the value of thepossibleScriptsrecord component.- Returns:
- the value of the
possibleScriptsrecord component
-
diagnosticFeatures
Returns the value of thediagnosticFeaturesrecord component.- Returns:
- the value of the
diagnosticFeaturesrecord component
-
confidence
public double confidence()Returns the value of theconfidencerecord component.- Returns:
- the value of the
confidencerecord component
-